mirror of https://github.com/CrowCpp/Crow.git
add HTTP status 406
This commit is contained in:
parent
ad337a8a86
commit
96e049666e
|
@ -125,6 +125,7 @@ Crow defines the following status codes:
|
||||||
403 Forbidden
|
403 Forbidden
|
||||||
404 Not Found
|
404 Not Found
|
||||||
405 Method Not Allowed
|
405 Method Not Allowed
|
||||||
|
406 Not Acceptable
|
||||||
407 Proxy Authentication Required
|
407 Proxy Authentication Required
|
||||||
409 Conflict
|
409 Conflict
|
||||||
410 Gone
|
410 Gone
|
||||||
|
|
|
@ -190,6 +190,7 @@ namespace crow
|
||||||
FORBIDDEN = 403,
|
FORBIDDEN = 403,
|
||||||
NOT_FOUND = 404,
|
NOT_FOUND = 404,
|
||||||
METHOD_NOT_ALLOWED = 405,
|
METHOD_NOT_ALLOWED = 405,
|
||||||
|
NOT_ACCEPTABLE = 406,
|
||||||
PROXY_AUTHENTICATION_REQUIRED = 407,
|
PROXY_AUTHENTICATION_REQUIRED = 407,
|
||||||
CONFLICT = 409,
|
CONFLICT = 409,
|
||||||
GONE = 410,
|
GONE = 410,
|
||||||
|
|
|
@ -312,6 +312,7 @@ namespace crow
|
||||||
{status::FORBIDDEN, "HTTP/1.1 403 Forbidden\r\n"},
|
{status::FORBIDDEN, "HTTP/1.1 403 Forbidden\r\n"},
|
||||||
{status::NOT_FOUND, "HTTP/1.1 404 Not Found\r\n"},
|
{status::NOT_FOUND, "HTTP/1.1 404 Not Found\r\n"},
|
||||||
{status::METHOD_NOT_ALLOWED, "HTTP/1.1 405 Method Not Allowed\r\n"},
|
{status::METHOD_NOT_ALLOWED, "HTTP/1.1 405 Method Not Allowed\r\n"},
|
||||||
|
{status::NOT_ACCEPTABLE, "HTTP/1.1 406 Not Acceptable\r\n"},
|
||||||
{status::PROXY_AUTHENTICATION_REQUIRED, "HTTP/1.1 407 Proxy Authentication Required\r\n"},
|
{status::PROXY_AUTHENTICATION_REQUIRED, "HTTP/1.1 407 Proxy Authentication Required\r\n"},
|
||||||
{status::CONFLICT, "HTTP/1.1 409 Conflict\r\n"},
|
{status::CONFLICT, "HTTP/1.1 409 Conflict\r\n"},
|
||||||
{status::GONE, "HTTP/1.1 410 Gone\r\n"},
|
{status::GONE, "HTTP/1.1 410 Gone\r\n"},
|
||||||
|
|
Loading…
Reference in New Issue