Quick summary of HTTP codes
There are many different types of HTTP status codes, each with its own meaning. Understanding HTTP Status Codes is essential for web development and debugging.
Some of the most common types of HTTP status codes include:
- 1xx Informational: These codes indicate that the request was received and is being processed.
- 2xx Success: These codes indicate that the request was successful.
- 3xx Redirection: These codes indicate that the client should take some action in order to complete the request.
- 4xx Client Error: These codes indicate that the client made a mistake in the request.
- 5xx Server Error: These codes indicate that the server encountered an error while processing the request.
Here's a quick summary:
1xx Information:
- 100 Continue: Initial part of the request received; client should proceed.
- 101 Switching: Server is switching protocols.
- 102 Processing: Server accepted the request but hasn’t completed it.
- 103 Early Hints: Provides response headers before the final response.
2xx Success:
- 200 OK: Request was successful.
- 201 Created: Request resulted in a new resource.
- 202 Accepted: Request accepted but processing not complete.
- 204 No Content: Request processed successfully, but no content returned.
3xx Redirection:
- 301 Moved Permanently: Resource has moved to a new URL.
- 302 Found: Resource temporarily found under a different URL.
- 303 See Other: Resource can be found under a different URL using GET.
- 307 Temporary Redirect: Request should be repeated with another URL.
4xx Client Errors:
- 400 Bad Request: Server cannot process request due to bad syntax.
- 401 Unauthorized: Authentication required.
- 403 Forbidden: Server understood request but refuses to authorize it.
- 404 Not Found: Resource could not be found on the server.
5xx Server Errors:
- 500 Internal Server Error: Server encountered an unexpected condition.
- 502 Bad Gateway: Invalid response from an upstream server.
- 503 Service Unavailable: Server is temporarily unable to handle the request.
- 504 Gateway Timeout: Server acting as a gateway did not receive a timely response.