aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/http_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crow/http_connection.h')
-rw-r--r--include/crow/http_connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h
index 96f2d14..1537d17 100644
--- a/include/crow/http_connection.h
+++ b/include/crow/http_connection.h
@@ -176,7 +176,7 @@ namespace crow
}
#ifdef CROW_ENABLE_DEBUG
- static int connectionCount;
+ static std::atomic<int> connectionCount;
#endif
template <typename Adaptor, typename Handler, typename ... Middlewares>
class Connection
@@ -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"},