r/programming • • Nov 03 '22

Announcing Rust 1.65.0

https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html
1.1k Upvotes

227 comments sorted by

View all comments

Show parent comments

1

u/fnord123 Nov 04 '22

Sure but do you want to handle this as a 500 or a 503.

2

u/ragnese Nov 04 '22

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.