Node.js beginner 15 min

HTTP Status Codes

Learn about HTTP Status Codes in Node.js.

HTTP Status Codes

Status codes tell the client whether a request was successful. Common codes are:

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

Practice

Visit a broken URL and check the status code. Try to understand what it means.