HTTP status codes
10/04/24 2:40 PM
HTTP Status Codes:
1xx - Informational:
• 100 Continue: The server acknowledges that the initial part of the request has been received and the client should proceed with
the request.
2xx - Success:
• 200 OK: The request was successful, and the server has returned the requested data.
• 201 Created: The request was successful, and a new resource was created as a result.
• 204 No Content: The request was successful, but there is no content to return (often used for successful DELETE requests).
3xx - Redirection:
• 301 Moved Permanently: The requested resource has been permanently moved to a new location.
• 302 Found (or 307 Temporary Redirect): The requested resource has been temporarily moved to a different location.
4xx - Client Error:
• 400 Bad Request: The server cannot process the request due to a client error, such as malformed syntax or invalid request
parameters.
• 401 Unauthorized: The client must authenticate to get the requested response.
• 403 Forbidden: The client does not have permission to access the requested resource.
• 404 Not Found: The server cannot find the requested resource.
5xx - Server Error:
• 500 Internal Server Error: A generic error message indicating that the server has encountered an unexpected condition and
cannot fulfill the request.
• 502 Bad Gateway: The server, while acting as a gateway or proxy, received an invalid response from an upstream server.
• 503 Service Unavailable: The server is not ready to handle the request. Common causes include a server that is down for
maintenance or overloaded.