HTTP status codes are standardized codes returned by a web server in response to a client's request made to the server. They indicate whether a specific HTTP request has been successfully completed, or if there was an error or other condition.
Here is a summary of common HTTP status code categories and some frequently used codes:
1xx: Informational
100 Continue – The initial part of a request has been received and has not yet been rejected by the server.
101 Switching Protocols – The server is switching protocols as requested by the client.
2xx: Success
200 OK – The request has succeeded.
201 Created – The request has been fulfilled and resulted in a new resource being created.
202 Accepted – The request has been accepted for processing, but processing is not complete.
204 No Content – The server successfully processed the request, but is not returning any content.
3xx: Redirection
301 Moved Permanently – The requested resource has been assigned a new permanent URI.
302 Found – The requested resource resides temporarily under a different URI.
304 Not Modified – Indicates that the resource has not been modified since the last request.
4xx: Client Errors
400 Bad Request – The server cannot process the request due to something that is perceived to be a client error (e.g., malformed request syntax).
401 Unauthorized – Authentication is required and has failed or has not yet been provided.
403 Forbidden – The server understood the request but refuses to authorize it.
404 Not Found – The requested resource could not be found on the server.
405 Method Not Allowed – A request method is not supported for the requested resource.
409 Conflict – The request could not be completed due to a conflict with the current state of the resource.
5xx: Server Errors
500 Internal Server Error – A generic error message, given when no more specific message is suitable.
501 Not Implemented – The server either does not recognize the request method or lacks the ability to fulfill it.
502 Bad Gateway – The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
503 Service Unavailable – The server is currently unable to handle the request due to temporary overload or maintenance.
504 Gateway Timeout – The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server.
If you want, I can provide detailed explanations, examples, or less common codes too!