Skip to content

Commit

Permalink
add HTTP status 406
Browse files Browse the repository at this point in the history
  • Loading branch information
ssams authored and gittiver committed Apr 19, 2024
1 parent ad337a8 commit 96e0496
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/guides/routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Crow defines the following status codes:
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
409 Conflict
410 Gone
Expand Down
1 change: 1 addition & 0 deletions include/crow/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ namespace crow
FORBIDDEN = 403,
NOT_FOUND = 404,
METHOD_NOT_ALLOWED = 405,
NOT_ACCEPTABLE = 406,
PROXY_AUTHENTICATION_REQUIRED = 407,
CONFLICT = 409,
GONE = 410,
Expand Down
1 change: 1 addition & 0 deletions include/crow/http_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ namespace crow
{status::FORBIDDEN, "HTTP/1.1 403 Forbidden\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::NOT_ACCEPTABLE, "HTTP/1.1 406 Not Acceptable\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::GONE, "HTTP/1.1 410 Gone\r\n"},
Expand Down

0 comments on commit 96e0496

Please sign in to comment.