-
Notifications
You must be signed in to change notification settings - Fork 1
API Server Response Status
fredchu edited this page May 15, 2012
·
14 revisions
Please read the original http 1.1 header status code spec first.
ref:
- http status codes for beginners
- msdn
- amazon errors
- webdev
- 302 vs 303 vs 307
- 401 vs 403
- 409 vs 412
- no record found
We can specified more details in the json response body status feild.
- mostly for get request
- data created.
- data deleted.
- record( in the database ) not found.
- request redirect
- from cache
- validation err
- wrong param format. Ex. wrong _id format or too long.
- request param missing.
- need to login
- user_id & password does not match.
- user_id & token does not match.
- user has no right to access the resource.
- resource not found
- duplicate data.
- validation error - required field should be unique. Ex. email is taken.
- request param missing for get only, # deprecated.
- some shit happened.