Server Error (5xx)
HTTP 504 — 504 Gateway Timeout
The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed for the request to be complete. (Proxy veya Nginx sunucusu, arka plandaki uygulama sunucusunun yanıt vermesini beklerken belirlenen zaman aşımı süresine (timeout) ulaştı.)
Yaygın Nedenler / Common Causes
- •Slow database query running longer than Nginx proxy_read_timeout (usually 60s).
- •Calling slow external third-party API in blocking synchronous manner.
Spesifikasyon & Kategori
Status Code:504
Category:Server Error (5xx)
RFC Standard:RFC 9110 / HTTP/1.1 & HTTP/2
Nasıl Düzeltilir / Practical Code Solutions
Increase Nginx Proxy Timeout
Adjust timeout settings in nginx.conf for long-running endpoints.
location /api/ {
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
}Diğer Popüler HTTP Durum Kodları
Frequently Asked Questions
Common Questions About HTTP 504 to RFC Standard
Everything you need to know regarding AST transformations, typing rules, and browser security.
The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed for the request to be complete. In Turkish: Proxy veya Nginx sunucusu, arka plandaki uygulama sunucusunun yanıt vermesini beklerken belirlenen zaman aşımı süresine (timeout) ulaştı.