dive into mark

You are here: dive into markArchivesDecember 2006REST for toddlers

Thursday, December 7, 2006

REST for toddlers

100 Continue

“Mmm hmm…”

200 OK

“OK.”

201 Created

“You went pee-pee in the potty!”

202 Accepted

“Daddy will do it in a minute.”

204 No Content

“…”

300 Multiple Choices

“Do you want apple juice or do you want milk?”

301 Moved Permanently

“That’s Mommy’s job now.”

302 Found

“Ask Mommy.”

303 See Other

“Give it to Mommy.”

304 Not Modified

“The same as the last time you asked me.”

305 Use Proxy

“Did Mommy say it was OK?”

400 Bad Request

“Daddy doesn’t understand.”

401 Unauthorized

“That’s not your soda. That’s Daddy’s soda.”

402 Payment Required

Reserved for future use. (”If you’re not out of this house by your 18th birthday, we’re charging you rent.”)

403 Forbidden

“You’re in timeout.”

404 Not Found

“Daddy can’t find it.”

405 Method Not Allowed

“Don’t draw on the table.”

406 Not Acceptable

“Make another choice.”

407 Proxy Authentication Required

“You didn’t ask Mommy.”

408 Request Timeout

“If you’re not going to answer me, then you get nothing.”

409 Conflict

“Your brother is playing with that right now.”

410 Gone

“Bath is all gone.”

412 Precondition Failed

“If you don’t eat your meat, you can’t have any pudding. How can you have any pudding if you don’t eat your meat?”

413 Request Entity Too Large

“It doesn’t fit.”

415 Unsupported Media Type

“Don’t eat your boogers.”

416 Requested Range Not Satisfiable

“No, you can’t have that piece.”

417 Expectation Failed

“No, you can’t have a pony.”

501 Not Implemented

“Daddy can’t fix it.”

502 Bad Gateway

“Mommy said bad words.”

503 Service Unavailable

“Daddy is busy.”

504 Gateway Timeout

“Mommy’s not answering the phone.”

505 HTTP Version Not Supported

“Daddy can’t hear you if you use words like that.”

(The real definitions might help if you don’t get them all.)

Postscript

It is important to remember that REST != HTTP, and status codes don’t tell the whole story. REST is an architectural style which revolves around The Four Verbs:

  1. “Give it here,”
  2. “Here you go,”
  3. “Put that thing back where it came from or so help me,” and
  4. “Flush.”

Filed under , ,

32 comments

  1. humm… very well-defined with the toddlerhood in our house! They sound just about right especially 415!

    Comment by d — Thursday, December 7, 2006 @ 11:50 am

  2. Pingback by snellspace.com » Blog Archive » Toddler Response Codes
  3. Pingback by bugfox blog » Blog Archive » REST for toddlers
  4. Y’know, I was thinking that your ‘backson’ post was a bit misleading. Instead of saying ‘This is neither a 410 nor a 447′, Couldn’t you have simply said ‘503′?

    Comment by Michael Bernstein — Thursday, December 7, 2006 @ 12:47 pm

  5. Gotta love 412. I wonder how many recognize and know the source of that line. Which makes me wonder if there are any other lines in there that I missed.

    Comment by Waylan Limberg — Thursday, December 7, 2006 @ 1:18 pm

  6. Pingback by Wes Maldonado: Data Junkie » Blog Archive » HTTP Status Code 417 Explained
  7. 413 made me blush :)

    RE: 412 - I wonder how many *don’t* recognize and know the source of that line. Didn’t everyone’s Dad think Floyd on eight-track was never to be turned off?

    Comment by Ryan Tomayko — Thursday, December 7, 2006 @ 2:09 pm

  8. Your comment form prefills the info from the last commenter. - Not Ryan Tomayko

    Comment by Ryan Tomayko — Thursday, December 7, 2006 @ 3:19 pm

  9. What do you mean, “everyone’s Dad”?? I can’t be that old already …

    Comment by Stefan Tilkov — Thursday, December 7, 2006 @ 3:19 pm

  10. Pingback by Labnotes » Rounded Corners - 70
  11. “RE: 412 - I wonder how many *don’t* recognize and know the source of that line. Didn’t everyone’s Dad think Floyd on eight-track was never to be turned off?”

    No, my dad would not have been caught dead listening to Pink Floyd. *I* listened to Pink Floyd. But The Wall was not really my favorite album :D

    Comment by Nepharia — Thursday, December 7, 2006 @ 4:41 pm

  12. Yeah, i enjoyed the small reference to “The Wall”… even though the greatest floyd album is clearly “The Piper at the Gates of Dawn”

    Comment by Matt Tavares — Thursday, December 7, 2006 @ 5:40 pm

  13. Pingback by Sam’s random musings » REST for toddlers
  14. “If you don’t eat your meat, you can’t have any pudding. How can you have any pudding if you don’t eat your meat?”

    Comment by Anonymous — Thursday, December 7, 2006 @ 6:06 pm

  15. Pingback by HTTP status code translated into toddler’s language | SYP
  16. Pingback by Web Things, by Mark Baker » Blog Archive » links for 2006-12-08
  17. Pingback by links for 2006-12-08 at tecosystems
  18. Oooh, this is so cute! Your children are lucky to have a dad that speaks both geekish and toddlerish.

    Comment by Matthias — Friday, December 8, 2006 @ 3:50 am

  19. My God - this is perfect. I do believe I returned every one of these status codes yesterday, save 402, 502 and 505.

    Comment by alan taylor — Friday, December 8, 2006 @ 11:36 am

  20. Hilarious. I had toddlers before learning status codes. This would have been the perfect for me when I was learning. Came here via Jeff at blog.codedread.com.

    Comment by Candace — Friday, December 8, 2006 @ 2:16 pm

  21. Pingback by TechSpeak » Blog Archive » HTTP status code translated into toddler’s language
  22. Pingback by house of warwick » Blog Archive » REST for toddlers
  23. Pingback by links for 2006-12-09 « Bloggitation
  24. Pingback by slow’s blogged life II » Blog Archive » REST for toddlers
  25. Pingback by protocol7 » Blog Archive » links for 2006-12-09
  26. Pingback by christian schorn » Blog Archive » Links 3
  27. Pingback by Blog | alexking.org
  28. Pingback by rascunho » Seção de dados do blog » links for 2006-12-10
  29. Is “402 Payment Required” a new code, for e-commerce servers perhaps ???

    Comment by Chris Noe — Monday, December 11, 2006 @ 3:01 pm

  30. Pingback by SitePoint Blogs » News Wire: Developers Don’t Design?
  31. YOu forgot …

    101 Switching Protocols

    Get mommy to do that.

    Comment by Rick — Monday, December 11, 2006 @ 8:26 pm

  32. Pingback by Oddly Zen » Blog Archive » links for 2006-12-10

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim