2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "web/http/StatusCodes.h"
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
56 {101,
"Switching Protocols"},
62 {203,
"Non-Authoritative Information"},
64 {205,
"Reset Content"},
65 {206,
"Partial Content"},
66 {207,
"Multi-Status"},
67 {208,
"Already Reported"},
69 {300,
"Multiple Choices"},
70 {301,
"Moved Permanently"},
73 {304,
"Not Modified"},
75 {307,
"Temporary Redirect"},
76 {308,
"Permanent Redirect"},
78 {401,
"Unauthorized"},
79 {402,
"Payment Required"},
82 {405,
"Method Not Allowed"},
83 {406,
"Not Acceptable"},
84 {407,
"Proxy Authentication Required"},
85 {408,
"Request Timeout"},
88 {411,
"Length Required"},
89 {412,
"Precondition Failed"},
90 {413,
"Payload Too Large"},
91 {414,
"URI Too Long"},
92 {415,
"Unsupported Media Type"},
93 {416,
"Range Not Satisfiable"},
94 {417,
"Expectation Failed"},
95 {421,
"Misdirected Request"},
96 {422,
"Unprocessable Entity"},
98 {424,
"Failed Dependency"},
100 {426,
"Upgrade Required"},
102 {428,
"Precondition Required"},
103 {429,
"Too Many Requests"},
105 {431,
"Request Header Fields Too Large"},
106 {451,
"Unavailable For Legal Reasons"},
107 {500,
"Internal Server Error"},
108 {501,
"Not Implemented"},
109 {502,
"Bad Gateway"},
110 {503,
"Service Unavailable"},
111 {504,
"Gateway Timeout"},
112 {505,
"HTTP Version Not Supported"},
113 {506,
"Variant Also Negotiates"},
114 {507,
"Insufficient Storage"},
115 {508,
"Loop Detected"},
116 {510,
"Not Extended"},
117 {511,
"Network Authentication Required"}};
122 std::string reasonPhrase =
"unknown status code";
static bool contains(int status)
static std::map< int, std::string > statusCode
static std::string reason(int status)