HTTP status codes are an essential part of the HTTP protocol, providing information about the request's success or failure. Below is a comprehensive guide to common HTTP status codes.

1xx Informational

These status codes indicate that the request has been received and understood, but the request has not yet been completed.

  • 100 Continue: This interim response indicates that the initial part of the request has been received and the server is continuing the process.
  • 101 Switching Protocols: This status code is used when the server switches protocols to HTTP/1.1.

2xx Success

These status codes indicate that the request was successfully received, understood, and accepted.

  • 200 OK: This is the most common status code, indicating that the request has succeeded.
  • 201 Created: This status code is returned when a new resource is successfully created.
  • 202 Accepted: This status code indicates that the request has been accepted for processing, but the processing has not been completed.
  • 204 No Content: This status code is used to indicate that the server successfully processed the request and is not returning any content.

3xx Redirection

These status codes indicate that further action is required to complete the request.

  • 301 Moved Permanently: This status code indicates that the requested resource has been permanently moved to a new URL.
  • 302 Found: This status code indicates that the requested resource has been temporarily moved to a new URL.
  • 304 Not Modified: This status code indicates that the resource has not been modified since the last request.

4xx Client Errors

These status codes indicate that the request contains bad syntax or cannot be fulfilled.

  • 400 Bad Request: This status code indicates that the server cannot or will not process the request due to something that is perceived as a client error.
  • 401 Unauthorized: This status code indicates that the request requires user authentication.
  • 403 Forbidden: This status code indicates that the server understood the request, but is refusing to fulfill it.
  • 404 Not Found: This status code indicates that the server cannot find the requested resource.

5xx Server Errors

These status codes indicate that the server is aware that it has erred or is unable to fulfill the request.

  • 500 Internal Server Error: This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
  • 503 Service Unavailable: This status code indicates that the server is currently unable to handle the request due to a temporary overloading or maintenance of the server.

For more detailed information, please visit our HTTP Status Codes Reference.

HTTP Status Codes