Javascript,Nodejs,MongodDB,WordPress,CSS,PHP

LightBlog

Sunday, January 20, 2019

HTTP Method

There are most popular and most used HTTP method

i) GET: read-only method,it is safe to make duplicat GET requests,
GET method is used to get data from at resource.

ii) POST: write method,used to create data at a resource.

iii) PUT: write method used to update data at a resource.

iv) DELETE: write method used to delete data at a resource

v) PATCH: used to partially udate data at a resource (modify and update).

HTTP Status code:

200: ok
300: Multiple Choices
301: Moved Permanently
304: Not Modified
307:Temporary Redirect
400: Bad Request
401:Unauthorized
403:Forbidden
404:Not Found
410:Gone
500:Internal Server Error
501:Not Implemented
503: Service unavailable

550: Permission denied

No comments:

Post a Comment