-
Notifications
You must be signed in to change notification settings - Fork 1
Getting familiar with the HTTP Verbs
Rajesh Khadka edited this page Nov 18, 2019
·
2 revisions
The HTTP protocol provides the HTTP verbs such as GET, POST, PUT, PATCH, DELETE and many more to communicate with the server resources. HTTP verbs are used for different purposes:
GET - Used for the information retrieval
POST- Used to create a new resource that has yet to be identified by the origin server
PUT - Used to create or update the resources that have been sent in the payload
PATCH - Used to update the single attribute of Resources
DELETE - Used to delete the resource in server with nobody content in response
- 200 - Status OK
- 201 - Created
- 204 - No Content
- 301 - Moved Permanently
- 400 - Bad Request
- 401 - UnAuthorized
- 403 - Forbidden
- 404 - Not found
- 409 - Conflict
- 500 - Internal Server Error
- 501 - Not Implemented
- 502 - Bad Gateway
- 503 - Service Unavailable
References: