--- title: Database timeout status code changed to 504 description: Changed the HTTP status code for database query timeouts from 408 Request Timeout to 504 Gateway Timeout, which better reflects server-side timeout behavior for API integrations url: https://theirstack.com/en/product-updates/2025-06-09-database-timeout-status-change --- The HTTP status code returned for database query timeouts has been changed from `408 (Request Timeout)` to `504 (Gateway Timeout)`. A 504 code indicates a server-side timeout rather than a client-side one, which better reflects what's actually happening when a database query takes too long. If you were handling 408 errors before, you'll have to update your code to handle 504 errors instead.