{"id":130,"date":"2012-08-17T16:54:54","date_gmt":"2012-08-17T22:54:54","guid":{"rendered":"http:\/\/sha.nnoncarey.com\/blog\/?p=130"},"modified":"2012-11-16T18:08:41","modified_gmt":"2012-11-17T00:08:41","slug":"http-status-418-im-a-teapot","status":"publish","type":"post","link":"https:\/\/sha.nnoncarey.com\/blog\/archives\/130","title":{"rendered":"HTTP Status 418: I&#8217;m a Teapot"},"content":{"rendered":"<p>After seeing this in Rack::Utils (my IDE even highlighted it because it&#8217;s the only one in double quotes):<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">HTTP_STATUS_CODES = {\r\n      100  =&gt; &#039;Continue&#039;,\r\n      101  =&gt; &#039;Switching Protocols&#039;,\r\n...\r\n      418  =&gt; &quot;I&#039;m a Teapot&quot;,\r\n...\r\n}<\/pre>\n<p>I had to look it up: <a href=\"http:\/\/tools.ietf.org\/html\/rfc2324\">http:\/\/tools.ietf.org\/html\/rfc2324<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/rack\/rack\/pull\/281\">Thanks to laserlemon<\/a> I can finally implement my fully web-controlled coffee pot with Sinatra on Rack!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After seeing this in Rack::Utils (my IDE even highlighted it because it&#8217;s the only one in double quotes): HTTP_STATUS_CODES = { 100 =&gt; &#039;Continue&#039;, 101 =&gt; &#039;Switching Protocols&#039;, &#8230; 418 =&gt; &quot;I&#039;m a Teapot&quot;, &#8230; } I had to look it up: http:\/\/tools.ietf.org\/html\/rfc2324 Thanks to laserlemon I can finally implement my fully web-controlled coffee pot &hellip; <a href=\"https:\/\/sha.nnoncarey.com\/blog\/archives\/130\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;HTTP Status 418: I&#8217;m a Teapot&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-rails"],"_links":{"self":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":11,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":194,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions\/194"}],"wp:attachment":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}