diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2017-09-04 16:08:02 +0100 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2017-09-04 16:08:02 +0100 |
commit | 6e4e66ad1233257f6413e643cfb376d2cf298065 (patch) | |
tree | fe2d9dfb652e887a4b39aab582ca3306fcdb1512 | |
parent | 4e39b23e455e455f1878b3e68d729a1737f3e431 (diff) | |
download | crow-6e4e66ad1233257f6413e643cfb376d2cf298065.tar.gz crow-6e4e66ad1233257f6413e643cfb376d2cf298065.zip |
Add support for HTTP 422 status code
See: https://tools.ietf.org/html/rfc4918#section-11.2
-rw-r--r-- | amalgamate/crow_all.h | 1 | ||||
-rw-r--r-- | include/crow/http_connection.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/amalgamate/crow_all.h b/amalgamate/crow_all.h index 41b06ff..26f0806 100644 --- a/amalgamate/crow_all.h +++ b/amalgamate/crow_all.h @@ -8893,6 +8893,7 @@ namespace crow {401, "HTTP/1.1 401 Unauthorized\r\n"}, {403, "HTTP/1.1 403 Forbidden\r\n"}, {404, "HTTP/1.1 404 Not Found\r\n"}, + {420, "HTTP/1.1 404 Unprocessable Entity\r\n"}, {500, "HTTP/1.1 500 Internal Server Error\r\n"}, {501, "HTTP/1.1 501 Not Implemented\r\n"}, diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h index 96f2d14..3ef8089 100644 --- a/include/crow/http_connection.h +++ b/include/crow/http_connection.h @@ -374,6 +374,7 @@ namespace crow {401, "HTTP/1.1 401 Unauthorized\r\n"}, {403, "HTTP/1.1 403 Forbidden\r\n"}, {404, "HTTP/1.1 404 Not Found\r\n"}, + {422, "HTTP/1.1 422 Unprocessable Entity\r\n"}, {500, "HTTP/1.1 500 Internal Server Error\r\n"}, {501, "HTTP/1.1 501 Not Implemented\r\n"}, |