HTTP methods and status codes
Let us look at the HTTP methods and status codes. The HTTP methods are a communication channel for performing operations on the HTTP protocol.
The following are the HTTP methods used:
GET: This gets the existing resource for a given identifier.PUT: This puts a new resource.POST: This updates the existing resource.DELETE: This deletes the existing resource.
Status code is human readable diagnostic information about HTTP messages.
The following table shows all the available status codes and their meanings:
|
Status code |
Meaning |
|---|---|
|
200 |
The request has succeeded |
|
201 |
The POST method was executed successfully |
|
202 |
The request has been accepted for processing |
|
203 |
No authorization for the information |
|
204 |
No response from the server |
|
301 |
The data requested is moved to a new URL |
|
302 |
Forward action required for the request to be completely fulfilled |
|
303 |
All the 3XX codes point to different URL for various actions like forwarding |
|
304 |
Cache not modified properly... |