#849440 udd: Please use HTTP 503 for "Current system load is too high"

#849440#5
Date:
2016-12-27 07:47:11 UTC
From:
To:
Hi,

While using the UDD bugs interface today, I got a """Current system
load (49.52) is too high. Please retry later!""" error.

I noticed that it is returned with a "HTTP 200 OK" status, so
automatic processes will assume the request went well.  Furthermore,
you will always get HTML even if you request YAML[1], so any one
automatically processing gets "garbage" sent to their next step in the
pipeline due to this bug.

Thanks,
~Niels

[1] In the absence of a well-defined API for errors using an HTML
error page is fine (provided they are not served with a HTTP 20X
code).

#849440#10
Date:
2022-02-14 22:09:32 UTC
From:
To:
Looks like 3 ruby cgi's need this fix/improvement:

udd$ grep -r "is too high" .
./web/bugs.cgi:    puts "<p><b>Current system load (#{load}) is too high.
Please retry later!</b></p>"
./web/cgi-bin/nobugs.cgi:  puts "<p><b>Current system load (#{load}) is too
high. Please retry later!</b></p>"
./web/dmd.cgi:  puts "<p><b>Current system load (#{load}) is too high.
Please retry later!</b></p>"