- cross-posted to:
- [email protected]
- [email protected]
- [email protected]
- cross-posted to:
- [email protected]
- [email protected]
- [email protected]
API for HTTP Cats
http cat
look inside
httpshttpspsps
Don’t forget http.dog
Has anybody else noticed that in practice, shit tons of stuff uses a subtly wrong code?
Like every crappy REST API that gives a 200 with an error message in it.
Yeah, I always make sure to use the relevant code in my projects. I’ve been using 422 a lot for missing data.
For more fun with http error codes:
This is great, DEFCON talks are always amazing :D
The one about email is also great.
It’s a fun look at a dry topic. It gives some really interesting insights too. All good things :)
DEFCON in general is an outstanding conference.
That thumbnail image reminds me of hovercat: https://youtu.be/p1u-R4RVL70
Why would 418 ever be used?
Also 425, mood.
418 comes from an April fools’ joke published as RFC7168.
I’ve used it for debugging before because it stands out and is generally suported.
I once returned it in a home assignment in case true == false and added a comment that it’s cosmic radiation induced bit flip detection.
I got the job.
As per RFC, when an internet-connected teapot is asked to brew coffee.
418: catchall API response when all else fails. Easy to filter in logs.
Is the API new? LOL, never seen that and now I need a project for an excuse to implement it.
I already use it in Lemvotes and it’s quite funny