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, and if not, why it failed.
Here’s a summary of the main categories of HTTP status codes and some common examples from each:
1xx Informational
100 Continue: The initial part of a request has been received and the client should continue.
101 Switching Protocols: The server is switching protocols as requested.
2xx Success
200 OK: The request was successful.
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 the processing is not complete.
204 No Content: The request was successful but there is no content to send in the response.
3xx Redirection
301 Moved Permanently: The resource has been permanently moved to a new URL.
302 Found (temporary redirect): The resource is temporarily located at a different URL.
303 See Other: The response to the request can be found under another URL (typically for POST redirects).
304 Not Modified: The resource has not been modified since the last request.
4xx Client Errors
400 Bad Request: The server could not understand the request due to invalid syntax.
401 Unauthorized: Authentication is required and has failed or not been provided.
403 Forbidden: The server understands the request but refuses to authorize it.
404 Not Found: The requested resource could not be found.
405 Method Not Allowed: The request method is not supported for the requested resource.
409 Conflict: The request could not be processed because of conflict in the current state of the resource.
429 Too Many Requests: The user has sent too many requests in a given amount of time (“rate limiting”).
5xx Server Errors
500 Internal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request.
501 Not Implemented: The server does not support the functionality required to fulfill the request.
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 unavailable (overloaded or down for maintenance).
504 Gateway Timeout: The server acting as a gateway or proxy did not receive a timely response from the upstream server.
If you want, I can provide the full list or explanations for specific codes!