Use HTTP 500 in error conditions
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 12 May 2022 10:32:41 +0000 (12:32 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 12 May 2022 10:32:41 +0000 (12:32 +0200)
commit74cc46e8f757fb1bd1d50544d4dee5db741c1af3
tree0b3141bfe01a75229954b742eeb60d9d07dd8c1f
parent885477173bbe8fda3933be88224ca913939b5e8e
Use HTTP 500 in error conditions

Sending a 500 Internal Server Error for unplanned errors is more appropriate
than a 503 Service Unavailable, as the latter is defined:

RFC 7231#6.6.4:

> The 503 (Service Unavailable) status code indicates that the server
> is currently unable to handle the request due to a temporary overload
> or scheduled maintenance, which will likely be alleviated after some
> delay.

It's not likely that the exception will resolve itself after some delay.
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/proxy_sourcemap.php