As of 2016-02-26, there will be no more posts for this blog. s/blog/pba/
Showing posts with label HTTP status code. Show all posts

If you are nerdy enough, then you should be able to imagine how this cracked me up when I saw it from a list of HTTP status code. Remember 7XX status codes: Developer Errors, that is good one, too, right?

It was an April Fools' Joke in 1998 as RFC 2324 Hyper Text Coffee Pot Control Protocol. The definition of status code 418:

tiny tea!
tiny tea! by tseyg
(one of my Flickr contacts)
2.3.2 418 I'm a teapot

   Any attempt to brew coffee with a teapot should result in the error
   code "418 I'm a teapot". The resulting entity body MAY be short and
   stout.

Decaf? Get outta here! ;)

2.2.3 Omitted Header Fields

   No options were given for decaffeinated coffee. What's the point?

And the header Accept-Additions is just awesome, pretty much cover all additions, even this protocol was written in 1998. Coffee hasn't changed a lot.

Accept-Additions = "Accept-Additions" ":"
                    #( addition-range [ accept-params ] )

 addition-type   = ( "*"
                   | milk-type
                   | syrup-type
                   | sweetener-type
                   | spice-type
                   | alcohol-type
                   ) *( ";" parameter )
 milk-type       = ( "Cream" | "Half-and-half" | "Whole-milk"
                   | "Part-Skim" | "Skim" | "Non-Dairy" )
 syrup-type      = ( "Vanilla" | "Almond" | "Raspberry"
                   | "Chocolate" )
 alcohol-type    = ( "Whisky" | "Rum" | "Kahlua" | "Aquavit" )

I really want to see a tea machine has built-in support of RFC 2324. However, that doesn't make much sense since this RFC is for coffee pot, so the protocol coffee: shouldn't be known by a tea machine, therefore no way it can respond with 418.

If the coffee pot is unable to brew or can't do certain type of coffee, maybe it can return 301/302 for redirecting user to Starbucks?

Go check out first on GitHub.

At first glance of the title, even it's a bit of weird, I was kind of believing that was a valid document until I read the code 701. Then, I started laughing. Here is a list of my favorites:
  • 72X - Edge Cases
    • 720 - Unpossible
    • 721 - Known Unknowns
    • 722 - Unknown Unknowns
    • 723 - Tricky
    • 724 - This line should be unreachable
    • 725 - It works on my machine
  • 73X - Fucking
    • 735 - Fucking IE
    • 736 - Fucking Race Conditions
  • 74X - Meme Driven
    • 742 - A kitten dies
  • 76X - Substance-Affected Developer
    • 761 - Hungover
    • 762 - Stoned
    • 763 - Over-Caffienated
    • 764 - Under-Caffienated
  • 77X - Predictable Problems
    • 777 - Coincidence
    • 779 - Off By Too Many To Count Error
  • 78X - Somebody Else's Problem
    • 781 - Operations
    • 782 - QA
    • 783 - It was a customer request, honestly
Someone really needs to get this into standard. ;)