Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Changed Response.timeout from 500 to 503 - ServiceUnavailable #2151
Response.timeout is currently only used by AsyncHttp4sServlet, so I think this change is extremely low risk.
A 503 ("The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state") code is more appropriate to a timeout than the generic 500 ("A generic error message" that something broke horribly). We also considered and rejected 429 ("The user has sent too many requests") because it blames the client for a server problem.