Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::http::status_code Namespace Reference

HTTP Status codes.

Enumerations

enum  value {
  uninitialized = 0 , continue_code = 100 , switching_protocols = 101 , ok = 200 ,
  created = 201 , accepted = 202 , non_authoritative_information = 203 , no_content = 204 ,
  reset_content = 205 , partial_content = 206 , multiple_choices = 300 , moved_permanently = 301 ,
  found = 302 , see_other = 303 , not_modified = 304 , use_proxy = 305 ,
  temporary_redirect = 307 , bad_request = 400 , unauthorized = 401 , payment_required = 402 ,
  forbidden = 403 , not_found = 404 , method_not_allowed = 405 , not_acceptable = 406 ,
  proxy_authentication_required = 407 , request_timeout = 408 , conflict = 409 , gone = 410 ,
  length_required = 411 , precondition_failed = 412 , request_entity_too_large = 413 , request_uri_too_long = 414 ,
  unsupported_media_type = 415 , request_range_not_satisfiable = 416 , expectation_failed = 417 , im_a_teapot = 418 ,
  upgrade_required = 426 , precondition_required = 428 , too_many_requests = 429 , request_header_fields_too_large = 431 ,
  internal_server_error = 500 , not_implemented = 501 , bad_gateway = 502 , service_unavailable = 503 ,
  gateway_timeout = 504 , http_version_not_supported = 505 , not_extended = 510 , network_authentication_required = 511
}
 

Functions

std::string get_string (value c)
 

Enumeration Type Documentation

◆ value

Enumerator
uninitialized 
continue_code 
switching_protocols 
ok 
created 
accepted 
non_authoritative_information 
no_content 
reset_content 
partial_content 
multiple_choices 
moved_permanently 
found 
see_other 
not_modified 
use_proxy 
temporary_redirect 
bad_request 
unauthorized 
payment_required 
forbidden 
not_found 
method_not_allowed 
not_acceptable 
proxy_authentication_required 
request_timeout 
conflict 
gone 
length_required 
precondition_failed 
request_entity_too_large 
request_uri_too_long 
unsupported_media_type 
request_range_not_satisfiable 
expectation_failed 
im_a_teapot 
upgrade_required 
precondition_required 
too_many_requests 
request_header_fields_too_large 
internal_server_error 
not_implemented 
bad_gateway 
service_unavailable 
gateway_timeout 
http_version_not_supported 
not_extended 
network_authentication_required 

Definition at line 122 of file constants.hpp.

122 {
123 uninitialized = 0,
124
125 continue_code = 100,
127
128 ok = 200,
129 created = 201,
130 accepted = 202,
132 no_content = 204,
133 reset_content = 205,
134 partial_content = 206,
135
136 multiple_choices = 300,
137 moved_permanently = 301,
138 found = 302,
139 see_other = 303,
140 not_modified = 304,
141 use_proxy = 305,
142 temporary_redirect = 307,
143
144 bad_request = 400,
145 unauthorized = 401,
146 payment_required = 402,
147 forbidden = 403,
148 not_found = 404,
149 method_not_allowed = 405,
150 not_acceptable = 406,
152 request_timeout = 408,
153 conflict = 409,
154 gone = 410,
155 length_required = 411,
161 expectation_failed = 417,
162 im_a_teapot = 418,
163 upgrade_required = 426,
165 too_many_requests = 429,
167
169 not_implemented = 501,
170 bad_gateway = 502,
172 gateway_timeout = 504,
174 not_extended = 510,
176 };

Function Documentation

◆ get_string()

std::string websocketpp::http::status_code::get_string ( value c)
inline

Definition at line 179 of file constants.hpp.

179 {
180 switch (c) {
181 case uninitialized:
182 return "Uninitialized";
183 case continue_code:
184 return "Continue";
186 return "Switching Protocols";
187 case ok:
188 return "OK";
189 case created:
190 return "Created";
191 case accepted:
192 return "Accepted";
194 return "Non Authoritative Information";
195 case no_content:
196 return "No Content";
197 case reset_content:
198 return "Reset Content";
199 case partial_content:
200 return "Partial Content";
201 case multiple_choices:
202 return "Multiple Choices";
204 return "Moved Permanently";
205 case found:
206 return "Found";
207 case see_other:
208 return "See Other";
209 case not_modified:
210 return "Not Modified";
211 case use_proxy:
212 return "Use Proxy";
214 return "Temporary Redirect";
215 case bad_request:
216 return "Bad Request";
217 case unauthorized:
218 return "Unauthorized";
219 case payment_required:
220 return "Payment Required";
221 case forbidden:
222 return "Forbidden";
223 case not_found:
224 return "Not Found";
226 return "Method Not Allowed";
227 case not_acceptable:
228 return "Not Acceptable";
230 return "Proxy Authentication Required";
231 case request_timeout:
232 return "Request Timeout";
233 case conflict:
234 return "Conflict";
235 case gone:
236 return "Gone";
237 case length_required:
238 return "Length Required";
240 return "Precondition Failed";
242 return "Request Entity Too Large";
244 return "Request-URI Too Long";
246 return "Unsupported Media Type";
248 return "Requested Range Not Satisfiable";
250 return "Expectation Failed";
251 case im_a_teapot:
252 return "I'm a teapot";
253 case upgrade_required:
254 return "Upgrade Required";
256 return "Precondition Required";
258 return "Too Many Requests";
260 return "Request Header Fields Too Large";
262 return "Internal Server Error";
263 case not_implemented:
264 return "Not Implemented";
265 case bad_gateway:
266 return "Bad Gateway";
268 return "Service Unavailable";
269 case gateway_timeout:
270 return "Gateway Timeout";
272 return "HTTP Version Not Supported";
273 case not_extended:
274 return "Not Extended";
276 return "Network Authentication Required";
277 default:
278 return "Unknown";
279 }
280 }