Fair point. I guess that all depends on what we consider to be "expected" failures. If I "know" that a failed DB connection is likely to resolve as the DB connection pool replenishes or whatever, then it's nice to encode that as an expected failure and return a 503.
1
u/fnord123 Nov 04 '22
Sure but do you want to handle this as a 500 or a 503.