Professional Documents
Culture Documents
Rest Protocol HTTP Manual
Rest Protocol HTTP Manual
For Beginners
REST
GET
POST
PUT
DELETE
With the use of HTTP methods, we also use the HTTP status
codes
POST = Create
GET = Read
PUT = Update
DELETE = Delete
Use of POST
Use of GET
Use of PUT
Use of DELETE
200 - Everything is ok
401 - Unauthorised
Authentication has failed
403 - Forbidden
Authentication has succeeded but access levels prevent the user from accessing this content
410 - Gone
There used to be content here, its been deleted
Finally
201 - Created
This is the HTTP header we should use when creating new records
however a number of frameworks including AngularJS works on the basis
of IF NOT 200, THEN ITS AN ERROR
418 - Im a Teapot
Some how an April Fools joke made it into the official HTTP status codes.