In this article we are going to see about HTTP status code which is used to determine the called user about the API Request status, Mostly in REST API code are written in the format to support multiple applications from the multiple devices. After the doing the process Request call should get a response for that , that is classified in various ways,
Here we see some useful codes which is used for recursively
Let we some full list of Http status code and description
Here we see some useful codes which is used for recursively
CODE
|
DESCRIPTION
|
In Simple words
|
200
|
OK
|
It runs correctly
|
201
|
Created
|
Resource Created
|
202
|
Accepted
|
Accept the Request
|
304
|
Not Modified
|
Nothing is modified in data
|
307
|
Temporary Redirect
|
Redirect the Request Temporary to another
|
400
|
Bad Request
|
Client did something wrong in the Request or bad syntax
|
401
|
Not Authorized
|
Client is not authenticated
|
403
|
Forbidden
|
Client receives the Request, but fails to process due to not authorized
|
404
|
Not found
|
Requested Resource is not found
|
500
|
Internal Error
|
Something went wrong in server side
|
Let we some full list of Http status code and description
1xx: Informational - Request received, continuing process
2xx: Success - The Request was successfully received.
3xx: Redirection - The Request is received and doing some process like redirection.
4xx: Client Error - The request contains bad syntax in client side.
5xx: Server Error - The server failed to process a valid request
1XX:
Value
|
Description
|
100
|
Continue
|
101
|
Switching Protocols
|
102
|
Processing
|
103-199
|
Unassigned
|
2XX:
200
|
OK
|
201
|
Created
|
202
|
Accepted
|
203
|
Non-Authoritative Information
|
204
|
No Content
|
205
|
Reset Content
|
206
|
Partial Content
|
207
|
Multi-Status
|
208
|
Already Reported
|
209-225
|
Unassigned
|
226
|
IM Used
|
227-299
|
Unassigned
|
3XX:
300
|
Multiple Choices
|
301
|
Moved Permanently
|
302
|
Found
|
303
|
See Other
|
304
|
Not Modified
|
305
|
Use Proxy
|
306
|
(Unused)
|
307
|
Temporary Redirect
|
308
|
Permanent Redirect
|
309-399
|
Unassigned
|
4XX:
400
|
Bad Request
|
401
|
Unauthorized
|
402
|
Payment Required
|
403
|
Forbidden
|
404
|
Not Found
|
405
|
Method Not Allowed
|
406
|
Not Acceptable
|
407
|
Proxy Authentication Required
|
408
|
Request Timeout
|
409
|
Conflict
|
410
|
Gone
|
411
|
Length Required
|
412
|
Precondition Failed
|
413
|
Payload Too Large
|
414
|
URI Too Long
|
415
|
Unsupported Media Type
|
416
|
Requested Range Not Satisfiable
|
417
|
Expectation Failed
|
422
|
Unprocessable Entity
|
423
|
Locked
|
424
|
Failed Dependency
|
425
|
Unassigned
|
426
|
Upgrade Required
|
427
|
Unassigned
|
428
|
Precondition Required
|
429
|
Too Many Requests
|
430
|
Unassigned
|
431
|
Request Header Fields Too Large
|
432-499
|
Unassigned
|
5XX:
500
|
Internal Server Error
|
501
|
Not Implemented
|
502
|
Bad Gateway
|
503
|
Service Unavailable
|
504
|
Gateway Timeout
|
505
|
HTTP Version Not Supported
|
506
|
Variant Also Negotiates (Experimental)
|
507
|
Insufficient Storage
|
508
|
Loop Detected
|
509
|
Unassigned
|
510
|
Not Extended
|
511
|
Network Authentication Required
|
512-599
|
Unassigned
|
From this article you can find out the all http status codes and usages.
No comments:
Post a Comment