12xx : SUCCESS
2 200 OK : success
3 201 CREATED : successfully added data
4 204 NO-CONTENT successfully updated or deleted
5
6 3xx : REDIRECTION
7 304 NOT MODIFIED:
8
9 4xx : CLIENT SIDE ERROR
10 400 BAD REQUEST : bad data being sent
11 401 UNAUTHORIZED :
12 403 FORBIDDEN :
13 404 NOT FOUND : the resource does not exists at that location
14 405 METHOD NOT ALLOWED :
15 DELETE /api/spartans -->> 405 error
16 406 NOT ACCEPTABLE
17 415 Unsupported Media type
18 if you forget to specify the Content-Type
19 of Post request body, it will see it as plain text
20 and it will throw this error if it does not support
21
22 5xx : Server side error
23 500 internal service error
24 If the server do not have any mapping of the url
25 requested to handle the action -->> 500
26 503 SERVICE UNAVAILABLE :
27 504 GATEWAY TIMEOUT :
1The HTTP 200 OK success status response code indicates that the request has succeeded. A 200 response is cacheable by default. The meaning of a success depends on the HTTP request method: GET : The resource has been fetched and is transmitted in the message body.
2
3from developer.mozilla.org
1HTML STATUS CODES LIST
2
31×× Informational
4100 Continue
5101 Switching Protocols
6102 Processing
72×× Success
8200 OK
9201 Created
10202 Accepted
11203 Non-authoritative Information
12204 No Content
13205 Reset Content
14206 Partial Content
15207 Multi-Status
16208 Already Reported
17226 IM Used
183×× Redirection
19300 Multiple Choices
20301 Moved Permanently
21302 Found
22303 See Other
23304 Not Modified
24305 Use Proxy
25307 Temporary Redirect
26308 Permanent Redirect
274×× Client Error
28400 Bad Request
29401 Unauthorized
30402 Payment Required
31403 Forbidden
32404 Not Found
33405 Method Not Allowed
34406 Not Acceptable
35407 Proxy Authentication Required
36408 Request Timeout
37409 Conflict
38410 Gone
39411 Length Required
40412 Precondition Failed
41413 Payload Too Large
42414 Request-URI Too Long
43415 Unsupported Media Type
44416 Requested Range Not Satisfiable
45417 Expectation Failed
46418 I'm a teapot
47421 Misdirected Request
48422 Unprocessable Entity
49423 Locked
50424 Failed Dependency
51426 Upgrade Required
52428 Precondition Required
53429 Too Many Requests
54431 Request Header Fields Too Large
55444 Connection Closed Without Response
56451 Unavailable For Legal Reasons
57499 Client Closed Request
585×× Server Error
59500 Internal Server Error
60501 Not Implemented
61502 Bad Gateway
62503 Service Unavailable
63504 Gateway Timeout
64505 HTTP Version Not Supported
65506 Variant Also Negotiates
66507 Insufficient Storage
67508 Loop Detected
68510 Not Extended
69511 Network Authentication Required
70599 Network Connect Timeout Error