You can think of REST as having 600 status codes, or you can think of it as having about seven.
- Enjoy
- no it's over here
- What are you talking about?
- Who the hell are you?
- Not for you
- Nothing's here
- I fucked up
Only the last one should be associated with circuit breakers, which I think you already get. Then it's just two values to worry about. < 500, and >= 500
Oh I 100% agree with you.. though I think you're missing "you fucked up". My point is more just that people mess up and blur the lines accidentally either throwing exceptions which get propagated up as internal service errors when they should actually get run across the wire as business logic errors as part of you fucked up. Or really they didn't guard their code correctly and you get we fucked up when you really meant say overloaded.
And it does start getting really blurry when you get into you fucked up. Or you are fucking up so hard that we fucked up and in fact our fucking up everybody else.
Originally I had them in random order and then I sorted them to try to make it easier for people to guess the status code from the colloquial description :)
You can’t prove the teapot exists, or does not exist, so does it really matter?
And status 418 is only legal on April 1 in countries that celebrate April Fool’s Day. You can just turn your servers off for the day and not answer requests.
- Enjoy
- no it's over here
- What are you talking about?
- Who the hell are you?
- Not for you
- Nothing's here
- I fucked up
Only the last one should be associated with circuit breakers, which I think you already get. Then it's just two values to worry about. < 500, and >= 500