According to https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Lighttpd#Error pages:
The proxy provides its own error pages when your application returns HTTP/500, HTTP/502 or HTTP/503. This behavior is currently under review, and might change in the near future.
You can bypass the proxy error pages by passing an X-Wikimedia-Debug header.
This does not work as described. With the webservice for tools.dplbot down, I tried the following:
tools.dplbot@tools-sgebastion-07:~$ curl -L https://tools.wmflabs.org/dplbot/ > curlout.1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2384 100 2384 0 0 34341 0 --:--:-- --:--:-- --:--:-- 34550 tools.dplbot@tools-sgebastion-07:~$ curl -H "X-Wikimedia-Debug:1" -L https://tools.wmflabs.org/dplbot/ > curlout.2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2384 100 2384 0 0 46331 0 --:--:-- --:--:-- --:--:-- 66222 tools.dplbot@tools-sgebastion-07:~$ diff curlout.1 curlout.2 tools.dplbot@tools-sgebastion-07:~$
Either the documentation is incorrect, or the feature is not working correctly.