HTTP Response Codes - Just for clarity

Hi All,

I have started going through the notes and making some of the changes 
and am looking at HTTP Response codes that should be returned. I have 
put examples below, can you check that I am understanding correctly 
before I carry on. This is only a subset but it covers most of the URL 
endpoint types

GET /session/{sessionId}/element/{ELEMENT}/attribute/{name}
   200 if the attribute found
   404 if not found with data being returned as {"value": null}

POST /session/{sessionId}/element/
   200 if Element is found
   501 if it is not found with error in data model returned

POST /session/{sessionId}/element/{ELEMENT}
   200 if Element is found
   404 if it is not found with error in data model returned


David

Received on Saturday, 8 November 2014 00:45:13 UTC