XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Atom API Update
Subject: 201 or 200?
Date: 2004-02-03 21:17:28
From: August Mueller

At the very end of the article you say:


"And the server responds with an HTTP status code of 200 if everything went well.


HTTP/1.1 201 Created"


It's 200 in the sentence, and 201 in the header. I believe you mean 201 in the sentence, right?


-gus


No Previous Message Previous Message   Next Message No Next Message


Titles Only Titles Only Newest First
  • 201 or 200?
    2004-02-04 08:54:57 Joe Gregorio [Reply]

    "It's 200 in the sentence, and 201 in the header. I believe you mean 201 in the sentence, right?"


    Yes, both should say 201.


    Thanks.
    -joe

    • 201 or 200?
      2004-03-02 17:45:33 Mark Baker [Reply]

      Both should be 200, because the resource already exists; you invoked GET on it, after all.


      Good article, Joe.

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938