Supported Status Codes

The error page automatically displays the correct title and description for these codes:

CodeTitleDescription
400Bad RequestThe server couldn't understand your request.
401UnauthorizedAuthentication is required to access this resource.
402Payment RequiredThis resource requires payment to access.
403Access ForbiddenYou don't have permission to view this page.
404Page Not FoundThe page doesn't exist or may have been moved.
405Method Not AllowedThe HTTP method is not supported for this resource.
406Not AcceptableThe server can't produce a response in an accepted format.
407Proxy Auth RequiredProxy authentication is required.
408Request TimeoutThe server took too long to respond.
409ConflictThe request conflicts with the current state of the server.
410GoneThe requested resource has been permanently removed.
411Length RequiredThe request must include a Content-Length header.
412Precondition FailedA precondition in the request headers was not met.
413Payload Too LargeThe request body exceeds what the server accepts.
414URI Too LongThe URL is too long for the server to process.
415Unsupported Media TypeThe request's media type is not supported.
416Range Not SatisfiableThe requested range cannot be fulfilled.
417Expectation FailedThe server can't meet the Expect header requirements.
418I'm a TeapotThe server refuses to brew coffee because it is a teapot.
421Misdirected RequestThe request was directed at a server unable to respond.
422Unprocessable ContentThe request is well-formed but contains semantic errors.
423LockedThe resource is currently locked.
424Failed DependencyThe request failed due to a previous failed request.
425Too EarlyThe server is unwilling to risk processing a replayed request.
426Upgrade RequiredThe client should switch to a different protocol.
428Precondition RequiredThe server requires the request to be conditional.
429Too Many RequestsToo many requests in a short time.
431Headers Too LargeThe request headers are too large to process.
451Unavailable For Legal ReasonsThis resource is unavailable due to legal demands.
500Internal Server ErrorSomething went wrong on the server.
501Not ImplementedThe server doesn't support this functionality.
502Bad GatewayInvalid response from upstream server.
503Service UnavailableService is temporarily unavailable.
504Gateway TimeoutUpstream server didn't respond in time.
505HTTP Version Not SupportedThe HTTP version in the request is not supported.
506Variant Also NegotiatesServer configuration error in content negotiation.
507Insufficient StorageThe server lacks storage to complete the request.
508Loop DetectedAn infinite loop was detected while processing the request.
510Not ExtendedFurther extensions are required to fulfil this request.
511Network Auth RequiredYou need to authenticate to gain network access.

Nginx Configuration

To use these error pages in nginx, add the following to your server block:

error_page 400 403 404 408 429 500 502 503 504 /error.html;