Links to a toot about the use of an http status code that can be used to inform users that web content is absent for legal reasons.
Despite spending time on #web related things some years back, I've never been aware of #http_statuscode code 451.
"a Hypertext Transfer Protocol (HTTP) status code for use when resource access is denied as a consequence of legal demands"
I expect that's because I've never had to deny access to web content for legal reasons.
Read on for all the fascinating technical details and documentation...
If you work in government and are asked to remove content from websites (as a result of executive orders), please use the HTTP status code 451 instead of 404. 451 is the correct status code to use for these cases, and you'll be doing the rest of the country a service by using it. Addendum: you should also include a Link header with the link relation "blocked-by" that "Identifies the entity that blocks access to a resource following receipt of a legal demand." https://www.rfc-editor.org/rfc/rfc7725.html
HTTP 418 I'm a teapot
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418
The HTTP 418 I'm a teapot status response code indicates that the server refuses to brew coffee because it is, permanently, a teapot. A combined coffee/tea pot that is temporarily out of coffee should instead return 503. This error is a reference to Hyper Text Coffee Pot Control Protocol defined in April Fools' jokes in 1998 and 2014.
@codepo8 Great! Now, when asked for a meeting before 10am, I can simply reply with this URL:
https://httpstat.us/425
#statuscode #tooearly 🤭
HTTP Statuscodes testen
Mit dem Tool httpstat.us können HTTP Statuscodes in einer Anwendung einfach getestet werden.