Database timeout status code changed to 504

Xoel López
Co-Founder at TheirStack
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.