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
53 {101,
"Switching Protocols"},
59 {203,
"Non-Authoritative Information"},
61 {205,
"Reset Content"},
62 {206,
"Partial Content"},
63 {207,
"Multi-Status"},
64 {208,
"Already Reported"},
66 {300,
"Multiple Choices"},
67 {301,
"Moved Permanently"},
70 {304,
"Not Modified"},
72 {307,
"Temporary Redirect"},
73 {308,
"Permanent Redirect"},
75 {401,
"Unauthorized"},
76 {402,
"Payment Required"},
79 {405,
"Method Not Allowed"},
80 {406,
"Not Acceptable"},
81 {407,
"Proxy Authentication Required"},
82 {408,
"Request Timeout"},
85 {411,
"Length Required"},
86 {412,
"Precondition Failed"},
87 {413,
"Payload Too Large"},
88 {414,
"URI Too Long"},
89 {415,
"Unsupported Media Type"},
90 {416,
"Range Not Satisfiable"},
91 {417,
"Expectation Failed"},
92 {421,
"Misdirected Request"},
93 {422,
"Unprocessable Entity"},
95 {424,
"Failed Dependency"},
97 {426,
"Upgrade Required"},
99 {428,
"Precondition Required"},
100 {429,
"Too Many Requests"},
102 {431,
"Request Header Fields Too Large"},
103 {451,
"Unavailable For Legal Reasons"},
104 {500,
"Internal Server Error"},
105 {501,
"Not Implemented"},
106 {502,
"Bad Gateway"},
107 {503,
"Service Unavailable"},
108 {504,
"Gateway Timeout"},
109 {505,
"HTTP Version Not Supported"},
110 {506,
"Variant Also Negotiates"},
111 {507,
"Insufficient Storage"},
112 {508,
"Loop Detected"},
113 {510,
"Not Extended"},
114 {511,
"Network Authentication Required"}};
117 std::string reasonPhrase =
"unknown status code";
static bool contains(int status)
static std::map< int, std::string > statusCode
static std::string reason(int status)