Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
9bfeb764
Commit
9bfeb764
authored
Sep 12, 2017
by
Sylwester Rąpała
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more to Http::Code
parent
b66415aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
include/pistache/http_defs.h
include/pistache/http_defs.h
+25
-1
No files found.
include/pistache/http_defs.h
View file @
9bfeb764
...
@@ -31,6 +31,7 @@ namespace Http {
...
@@ -31,6 +31,7 @@ namespace Http {
#define STATUS_CODES \
#define STATUS_CODES \
CODE(100, Continue, "Continue") \
CODE(100, Continue, "Continue") \
CODE(101, Switching_Protocols, "Switching Protocols") \
CODE(101, Switching_Protocols, "Switching Protocols") \
CODE(102, Processing, "Processing") \
CODE(200, Ok, "OK") \
CODE(200, Ok, "OK") \
CODE(201, Created, "Created") \
CODE(201, Created, "Created") \
CODE(202, Accepted, "Accepted") \
CODE(202, Accepted, "Accepted") \
...
@@ -38,6 +39,9 @@ namespace Http {
...
@@ -38,6 +39,9 @@ namespace Http {
CODE(204, No_Content, "No Content") \
CODE(204, No_Content, "No Content") \
CODE(205, Reset_Content, "Reset Content") \
CODE(205, Reset_Content, "Reset Content") \
CODE(206, Partial_Content, "Partial Content") \
CODE(206, Partial_Content, "Partial Content") \
CODE(207, MultiStatus, "Multi-Status") \
CODE(208, Already_Reported, "Already Reported") \
CODE(226, IM_Used, "IM Used") \
CODE(300, Multiple_Choices, "Multiple Choices") \
CODE(300, Multiple_Choices, "Multiple Choices") \
CODE(301, Moved_Permanently, "Moved Permanently") \
CODE(301, Moved_Permanently, "Moved Permanently") \
CODE(302, Found, "Found") \
CODE(302, Found, "Found") \
...
@@ -45,6 +49,7 @@ namespace Http {
...
@@ -45,6 +49,7 @@ namespace Http {
CODE(304, Not_Modified, "Not Modified") \
CODE(304, Not_Modified, "Not Modified") \
CODE(305, Use_Proxy, "Use Proxy") \
CODE(305, Use_Proxy, "Use Proxy") \
CODE(307, Temporary_Redirect, "Temporary Redirect") \
CODE(307, Temporary_Redirect, "Temporary Redirect") \
CODE(308, Permanent_Redirect, "Permanent Redirect") \
CODE(400, Bad_Request, "Bad Request") \
CODE(400, Bad_Request, "Bad Request") \
CODE(401, Unauthorized, "Unauthorized") \
CODE(401, Unauthorized, "Unauthorized") \
CODE(402, Payment_Required, "Payment Required") \
CODE(402, Payment_Required, "Payment Required") \
...
@@ -63,11 +68,30 @@ namespace Http {
...
@@ -63,11 +68,30 @@ namespace Http {
CODE(415, Unsupported_Media_Type, "Unsupported Media Type") \
CODE(415, Unsupported_Media_Type, "Unsupported Media Type") \
CODE(416, Requested_Range_Not_Satisfiable, "Requested Range Not Satisfiable") \
CODE(416, Requested_Range_Not_Satisfiable, "Requested Range Not Satisfiable") \
CODE(417, Expectation_Failed, "Expectation Failed") \
CODE(417, Expectation_Failed, "Expectation Failed") \
CODE(418, I_m_a_teapot, "I'm a teapot") \
CODE(421, Misdirected Request, "Misdirected Request") \
CODE(422, Unprocessable_Entity, "Unprocessable Entity") \
CODE(423, Locked, "Locked") \
CODE(424, Failed_Dependency, "Failed Dependency") \
CODE(426, Upgrade_Required, "Upgrade Required") \
CODE(428, Precondition_Required, "Precondition Required") \
CODE(429, Too_Many_Requests, "Too Many Requests")\
CODE(431, Request_Header_Fields_Too_Large, "Request Header Fields Too Large") \
CODE(444, Connection_Closed_Without_Response, "Connection Closed Without Response") \
CODE(451, Unavailable_For_Legal_Reasons, "Unavailable For Legal Reasons") \
CODE(499, Client_Closed_Request, "Client Closed Request") \
CODE(500, Internal_Server_Error, "Internal Server Error") \
CODE(500, Internal_Server_Error, "Internal Server Error") \
CODE(501, Not_Implemented, "Not Implemented") \
CODE(501, Not_Implemented, "Not Implemented") \
CODE(502, Bad_Gateway, "Bad Gateway") \
CODE(502, Bad_Gateway, "Bad Gateway") \
CODE(503, Service_Unavailable, "Service Unavailable") \
CODE(503, Service_Unavailable, "Service Unavailable") \
CODE(504, Gateway_Timeout, "Gateway Timeout")
CODE(504, Gateway_Timeout, "Gateway Timeout") \
CODE(505, HTTP_Version_Not_Supported, "HTTP Version Not Supported")\
CODE(506, Variant_Also_Negotiates, "Variant Also Negotiates") \
CODE(507, Insufficient_Storage, "Insufficient Storage") \
CODE(508, Loop_Detected, "Loop Detected") \
CODE(510, Not_Extended, "Not Extended") \
CODE(511, Network_Authentication_Required, "Network Authentication Required")\
CODE(599, Network_Connect_Timeout_Error, "Network Connect Timeout Error")
// 3.4. Character Sets
// 3.4. Character Sets
// See http://tools.ietf.org/html/rfc2978 and
// See http://tools.ietf.org/html/rfc2978 and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment