Return status codes and headers also follow HTTP standards. The following are the possible return codes you will see developing with the REST API.
200 OK |
A GET request will return this code if there were no problems with the request. There will be returned in the body of the response. A PUT will also return this status code if it was successful and will return a copy of the object in the body of the response as it currently exists in the database (this might include data changed after calculations, additional defaults, etc.). |
201 CREATED |
A POST request that creates a new record will return this status code and will return the copy of the object in the body of the response as it currently exists in the database. |
204 NO CONTENT |
A DELETE request that successfully deletes a record will return this status code. The body of the response will be empty. |
304 NOT MODIFIED |
A GET response which includes an ETAG may return a 304 not modified if the object in the database has not been modified since the original ETAG was issued. |