aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaeseung Ha <ipknhama@gmail.com>2017-09-16 13:20:55 +0900
committerGitHub <noreply@github.com>2017-09-16 13:20:55 +0900
commitcb9090b7c131280b127370f2f0cea18f0df57a1c (patch)
treefdd6e141fc7db5532689d938125b628e04aa5f82
parent51d51bac9bf4214deb6af1d4d459e015cc8d76e4 (diff)
parent679fe4a8aca06844e3a006da9257dd6bf8a54adf (diff)
downloadcrow-cb9090b7c131280b127370f2f0cea18f0df57a1c.tar.gz
crow-cb9090b7c131280b127370f2f0cea18f0df57a1c.zip
Merge pull request #243 from jamiebullock/master
Add support for HTTP 422 status code
-rw-r--r--amalgamate/crow_all.h1
-rw-r--r--include/crow/http_connection.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/amalgamate/crow_all.h b/amalgamate/crow_all.h
index 41b06ff..bc23f58 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"},
+ {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"},
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"},