rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
http_statuses.h
1 #pragma once
2 
3 namespace rikitiki {
9  class HttpStatus {
10  HttpStatus(int s, const char* n) : status(s), name(n){}
11  HttpStatus(int s) : status(s), name(0){}
12  public:
13  int status;
14  const char* name;
15  static const HttpStatus Continue;
16  static const HttpStatus Switching_Protocols;
17  static const HttpStatus Processing;
18  static const HttpStatus OK;
19  static const HttpStatus Created;
20  static const HttpStatus Accepted;
21  static const HttpStatus Non_Authoritative_Information;
22  static const HttpStatus No_Content;
23  static const HttpStatus Reset_Content;
24  static const HttpStatus Partial_Content;
25  static const HttpStatus Multi_Status;
26  static const HttpStatus Already_Reported;
27  static const HttpStatus IM_Used;
28  static const HttpStatus Multiple_Choices;
29  static const HttpStatus Moved_Permanently;
30  static const HttpStatus Found;
31  static const HttpStatus See_Other;
32  static const HttpStatus Not_Modified;
33  static const HttpStatus Use_Proxy;
34  static const HttpStatus Switch_Proxy;
35  static const HttpStatus Temporary_Redirect;
36  static const HttpStatus Permanent_Redirect;
37  static const HttpStatus Bad_Request;
38  static const HttpStatus Unauthorized;
39  static const HttpStatus Payment_Required;
40  static const HttpStatus Forbidden;
41  static const HttpStatus Not_Found;
42  static const HttpStatus Method_Not_Allowed;
43  static const HttpStatus Not_Acceptable;
44  static const HttpStatus Proxy_Authentication_Required;
45  static const HttpStatus Request_Timeout;
46  static const HttpStatus Conflict;
47  static const HttpStatus Gone;
48  static const HttpStatus Length_Required;
49  static const HttpStatus Precondition_Failed;
50  static const HttpStatus Request_Entity_Too_Large;
51  static const HttpStatus Request_URI_Too_Long;
52  static const HttpStatus Unsupported_Media_Type;
53  static const HttpStatus Requested_Range_Not_Satisfiable;
54  static const HttpStatus Expectation_Failed;
55  static const HttpStatus Im_a_teapot;
56  static const HttpStatus Enhance_Your_Calm;
57  static const HttpStatus Unprocessable_Entity;
58  static const HttpStatus Locked;
59  static const HttpStatus Failed_Dependency;
60  static const HttpStatus Unordered_Collection;
61  static const HttpStatus Upgrade_Required;
62  static const HttpStatus Precondition_Required;
63  static const HttpStatus Too_Many_Requests;
64  static const HttpStatus Request_Header_Fields_Too_Large;
65  static const HttpStatus No_Response;
66  static const HttpStatus Retry_With;
67  static const HttpStatus Blocked_by_Windows_Parental_Controls;
68  static const HttpStatus Client_Closed_Request;
69  static const HttpStatus Internal_Server_Error;
70  static const HttpStatus Not_Implemented;
71  static const HttpStatus Bad_Gateway;
72  static const HttpStatus Service_Unavailable;
73  static const HttpStatus Gateway_Timeout;
74  static const HttpStatus HTTP_Version_Not_Supported;
75  static const HttpStatus Variant_Also_Negotiates;
76  static const HttpStatus Insufficient_Storage;
77  static const HttpStatus Bandwidth_Limit_Exceeded;
78  static const HttpStatus Not_Extended;
79  };
80 }