Status Code

HTTP status codes are divided into five categories –

  • Informational (100-199): The server has received part of the request and expects more information.

  • Successful (200-299): The request was successful, and the server has returned the requested data.

  • Redirection (300-399): The requested resource has been moved elsewhere.

  • Client Error (400-499): There is an issue with the client's request.

  • Server Error (500-599): The server encountered an issue while processing the request.

Common Status Codes

1XX - Informational

Status Code

100 Continue

Description

This interim response indicates that the client should continue the request or ignore the response if the request is already finished.

2XX - Successful

Status Code

200 OK

Description

The request succeeded. The result meaning of "success" depends on the HTTP method.

3XX - Redirection

Status Code

301 Moved Permanently

Description

The requested resource has been permanently moved to a new URL.

Status Code

302 Found

Description

The requested resource has been temporarily moved to a different URL.

4XX - Client Error

Status Code

400 Bad Request

Description

The server could not understand the request due to incorrect syntax.

Status Code

401 Unauthorized

Description

Authentication is required for the request, and the user is not authenticated.

Status Code

403 Forbidden

Description

The server understood the request but refused to authorize it.

Status Code

404 Not Found

Description

The requested resource was not found at the specified URL.

Status Code

405 Method not Allowed

Description

The method specified in the request is not allowed for the resource.

5XX - Server Error

Status Code

500 Internal Server Error

Description

The server encountered an error and could not process the request.

Status Code

503 Service Unavailable

Description

The server is temporarily unable to handle the request due to overload or maintenance.

Last updated