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 :
1HTTP response status codes
2
3HTTP response status codes indicate whether a specific HTTP request has been successfully completed.
4Responses are grouped in five classes:
5
61. Informational responses (100–199)
72. Successful responses (200–299)
83. Redirects (300–399)
94. Client errors (400–499)
105. Server errors (500–599)
11
121. Information responses
13 a. 100 Continue
14 b. 101 Switching Protocol
15 c. 102 Processing (WebDAV)
16 d. 103 Early Hints
17
182. Successful responses
19 a. 200 OK
20 b. 201 Created
21 c. 202 Accepted
22 d. 203 Non-Authoritative Information
23 e. 204 No Content
24 f. 205 Reset Content
25 g. 206 Partial Content
26 h. 207 Multi-Status (WebDAV)
27 i. 208 Already Reported (WebDAV)
28 j. 226 IM Used (HTTP Delta encoding)
29
303. Redirection messages
31 a. 300 Multiple Choice
32 b. 301 Moved Permanently
33 c. 302 Found
34 d. 303 See Other
35 e. 304 Not Modified
36 f. 305 Use Proxy
37 g. 306 unused
38 h. 307 Temporary Redirect
39 i. 308 Permanent Redirect
40
414. Client error responses
42 a. 400 Bad Request
43 b. 401 Unauthorized
44 c. 402 Payment Required
45 d. 403 Forbidden
46 e. 404 Not Found
47 f. 405 Method Not Allowed
48 g. 406 Not Acceptable
49 h. 407 Proxy Authentication Required
50 i. 408 Request Timeout
51 j. 409 Conflict
52 k. 410 Gone
53 l. 411 Length Required
54 m. 412 Precondition Failed
55 n. 413 Payload Too Large
56 o. 414 URI Too Long
57 p. 415 Unsupported Media Type
58 q. 416 Range Not Satisfiable
59 r. 417 Expectation Failed
60 s. 418 I'm a teapot
61 t. 421 Misdirected Request
62 u. 425 Too Early
63 v. 426 Upgrade Required
64 w. 428 Precondition Required
65 x. 429 Too Many Requests
66 y. 431 Request Header Fields Too Large
67 z. 451 Unavailable For Legal Reasons
68
695. Server error responses
70 a. 500 Internal Server Error
71 b. 501 Not Implemented
72 c. 502 Bad Gateway
73 d. 503 Service Unavailable
74 e. 504 Gateway Timeout
75 f. 505 HTTP Version Not Supported
76 g. 506 Variant Also Negotiates
77 h. 507 Insufficient Storage (WebDAV)
78 i. 508 Loop Detected (WebDAV)
79 j. 510 Not Extended
80 k. 511 Network Authentication Required
1
2<!-- Web.Config Configuration File -->
3
4<configuration>
5 <system.web>
6 <customErrors mode="On"/>
7 </system.web>
8</configuration>