Skip to content

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:

HTTP Verbs

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

Frequently Used HTTP Status codes

2XX - Success

  • 200 - Status OK
  • 201 - Created
  • 204 - No Content

3XX - Redirection

  • 301 - Moved Permanently

4xx - Client Error

  • 400 - Bad Request
  • 401 - UnAuthorized
  • 403 - Forbidden
  • 404 - Not found
  • 409 - Conflict

5xx - Server Error

  • 500 - Internal Server Error
  • 501 - Not Implemented
  • 502 - Bad Gateway
  • 503 - Service Unavailable

References:

Clone this wiki locally