Fix HTTP 405 code handling
Until now code 405 in crow::reponse caused an Internal Server Error 500
- added HTTP 405 code handling to crow
Change-Id: I9e07fb35eb4a2b697128fc036a391493e0258cb4
Signed-off-by: Borawski.Lukasz <lukasz.borawski@intel.com>
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/crow/include/crow/http_connection.h b/crow/include/crow/http_connection.h
index fa0a23c..87fa874 100644
--- a/crow/include/crow/http_connection.h
+++ b/crow/include/crow/http_connection.h
@@ -361,6 +361,7 @@
{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"},
+ {405, "HTTP/1.1 405 Method Not Allowed\r\n"},
{500, "HTTP/1.1 500 Internal Server Error\r\n"},
{501, "HTTP/1.1 501 Not Implemented\r\n"},