Back to all status codesRead more on MDN
504
Gateway Timeout
Server Error
RFC 7231
The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server.
Detailed Information
The 504 status code indicates that the server, while acting as a gateway or proxy, did not receive a timely response from the upstream server.
Common Examples
- •API requests with gateway timeouts
- •Web page requests with gateway timeouts
Common Uses
- •API requests with gateway timeouts
- •Web page requests with gateway timeouts
Best Practices
- •Use when the server did not receive a timely response from the upstream server
- •Include a detailed error message
- •Ensure proper gateway and proxy configuration
Additional Resources
Similar Status Codes
500
Internal Server Error
The server has encountered a situation it does not know how to handle.
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.