504 Gateway Timeout

The gateway server didn't receive a timely response from the upstream server. Common with slow backends behind nginx.

Status Code504
NameGateway Timeout
CategoryServer Error
MeaningThe gateway server didn't receive a timely response from the upstream server. Common with slow backends behind nginx.

Common Causes

Slow backend — database query or API call taking too long

Proxy timeout too short — increase nginx proxy_read_timeout

Related Status Codes

All HTTP Status Codes · SSL Test · HTTPS Redirect Tester · All Tools

All Tools · Learn · SamNet