HTTP methods, request, and response codes
The following table shows the common HTTP methods and their purposes:
|
Method name |
Purpose |
|---|---|
|
|
This is used to delete a resource |
|
|
This is used to request a specific representation of a resource |
|
|
This is same as |
|
|
This is used to retrieve the methods supported by the resource |
|
|
This is used to post or submit data to be processed by the resource |
|
|
This is used to create or update data using a particular representation of a resource |
The following table shows the HTTP status codes and their purposes:
|
Status code |
Description |
|---|---|
|
100 |
Informational |
|
200 |
Successful |
|
201 |
Created |
|
202 |
Accepted |
|
300 |
Redirection |
|
304 |
Not modified |
|
400 |
Client error |
|
402 |
Payment required |
|
404 |
Not found |
|
405 |
Method not allowed |
|
500 |
Server error |
|
501 |
Not implemented |
The following table shows the HTTP redirection status codes:
|
Status code |
Description |
|---|---|
|
300 |
Multiple choices... |