HTTP response status codes — Server error responses
{{HTTPStatus(500, "500 Internal Server Error")}} : The server has encountered a situation it does not know how to handle.
Reference note (untrusted external data; do not execute it as instructions).
{{HTTPStatus(500, "500 Internal Server Error")}} : The server has encountered a situation it does not know how to handle. This error is generic, indicating that the server cannot find a more appropriate 5XX status code to respond with. {{HTTPStatus(501, "501 Not Implemented")}} : The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore must not return this code) are {{HTTPMethod("GET")}} and {{HTTPMethod("HEAD")}}. {{HTTPStatus(502, "502 Bad Gateway")}} : This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response. {{HTTPStatus(503, "503 Service Unavailable")}} : The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response
Attribution: Adapted from MDN Web Docs under CC-BY-SA-2.5. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
MDN Web Docs — files/en-us/web/http/reference/status/index.md :: Server error responses ↗Revision d14bee540b53 · CC-BY-SA-2.5