418 I'm a teapot - HTTP | MDN

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.

MDN Web Docs
@davidrevoy this is so beautiful ❤️ probably gonna use that for my error pages going forward!

@davidrevoy Which reminds me that is in fact time to get an ESP32 and mod the teapot.

GET will return 418
TEMP will return temp
STATE will return cold, heating or hot

@davidrevoy aww cute
are http framasoft an attempt to superset http.cat
HTTP Cats

API for HTTP Cats

HTTP Status Cats API
@duponin Oh no: this one is too cult and legendary 😊 I'll probably also never reach the full completion. 
@davidrevoy ooh, my favorite day... 😺
@davidrevoy When will you add it to https://http.framasoft.org/ ?
David Revoy’s HTTP status

Images from David Revoy for HTTP status

@davidrevoy you sure that's an teapot because it looks a lot like a catpot to me?

I love this.

I regularly use 418 in unit tests that have anything to do with HTTP responses.

I'll have to find a way to incorporate this image somewhere in my tests.

@davidrevoy

@davidrevoy
I was waiting for this one. 😊
@davidrevoy: 🎵​I'm a teapot, short and stoat ... 🎶​
@ssavitzky your favourite HTML return code, IIRC? ^^
@stonebear I can't think of a better one off-hand.
@davidrevoy do you mind if I use this image?
@sabrinaweb71 @davidrevoy
per the second link, it's CC-BY, so all you need to do is provide credit wherever you use it
I am a Teapot 418 Error by David Revoy – Viewer - Pepper&Carrot

Official homepage of Pepper&Carrot, a free(libre) and open-source webcomic about Pepper, a young witch and her cat, Carrot. They live in a fantasy universe of potions, magic, and creatures.

Pepper&Carrot

@davidrevoy @sabrinaweb71

here's my website's responsive 404 page that I updated to use the project's 404 image last night. just replace the image src with whatever image and message you want. optimally it would use an imageset instead of just a 1080p image, but I was lazy.

https://lukepj.com/404

MIT license, no credit needed to use/modify/copy it from my site if you don't want to. just make sure to respect David's CC-BY and add credit whenever you use it.

@lukepfjo

Oh nice for stretching the picture fullscreen and getting it responsive.
On https://http.framasoft.org/404/ , I can't see the same effect. What could be modified to make it responsive as well? (I ask in case it's a low hanging fruit to grab).

The HTML is generated here: https://framagit.org/framasoft/fun/http-status-david-revoy/-/blob/main/build_page.sh#L194

@sabrinaweb71

Not Found

Image from David Revoy for HTTP status 404

@davidrevoy @sabrinaweb71

the trick is using a background image on the body element instead of an img/picture tag. just remember that text is vital for accessibility since you won't have an alt tag.

switching between image sizes can then be handled with @media rules matching screen width ranges.

@davidrevoy @sabrinaweb71

here's how to get it to display nicely:
background-image: url('4xx.jpg');
background-position: center;
background-size: cover;

the last two tell the browser "center the image on the element it's attached to, then automatically resize it to cover the element while preserving its aspect ratio"

@davidrevoy @sabrinaweb71

ah, I see you're doing similar. it's late so I could only take a glance, but I'm guessing the issue is that you haven't set the dimensions of the element the background image is attached to.

height: 100vh

works in a pinch, but it gets a little funky with browser bars on mobile devices (thanks W3C, that standard was _very_ helpful 🙄). iirc if you look at the source on the page I posted there's a JS snippet I wrote to help.

GitHub - lukepfjo/luketimothyjones.github.io

Contribute to lukepfjo/luketimothyjones.github.io development by creating an account on GitHub.

GitHub

@lukepfjo Thanks for the tips and the URL, I bookmarked and I'll have a look 👍

@sabrinaweb71

@davidrevoy way better than https://http.cat ! Thank you!
HTTP Cats

API for HTTP Cats

HTTP Status Cats API
@davidrevoy Thanks for the great artwork with the status codes. It is really lovely. Tech stuff can also be pretty.
Would be awesome to have one for 401 Unauthorized.