Skip to content
Justice Tech School

HTTP Status Codes

200 OK, 201 Created, 301 Redirect, 400 Bad Request, 401 Unauthorized, 404 Not Found and 500 Server Error.

Example
const codes = { 200: "OK", 201: "Created", 400: "Bad Request", 401: "Unauthorized", 404: "Not Found", 500: "Server Error" };
for (const [c, m] of Object.entries(codes)) console.log(c, m);

Result

200 OK
201 Created
400 Bad Request
401 Unauthorized
404 Not Found
500 Server Error

Exercise

Not found.

 Not Found

Quiz Test

Which means created?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.