Overview:
- Status codes are issued by the server in response to the client’s request to indicate the result of the request.
- Categories include:
- 1.. Informational: Request received, continuing process.
- 2. Success: The request was successfully received, understood, and accepted.
- 3.. Redirection: Further action needs to be taken in order to complete the request.
- 4.. Client Error: The request contains bad syntax or cannot be fulfilled.
- 5.. Server Error: The server failed to fulfill an apparently valid request.
Common Status Codes:
- 200 OK: The request succeeded.
- 201 Created: The request succeeded and a new resource was created.
- 204 No Content: The server successfully processed the request, but is not returning any content.
- 400 Bad Request: The server could not understand the request due to invalid syntax.
- 401 Unauthorized: Authentication is required.
- 403 Forbidden: The client does not have access rights to the content.
- 404 Not Found: The server cannot find the requested resource.
- 500 Internal Server Error: The server encountered an unexpected condition.
- 502 Bad Gateway: The server was acting as a gateway or proxy and received an invalid response from the upstream server.
- 503 Service Unavailable: The server is not ready to handle the request.