diff --git a/src/http.c b/src/http.c
index 10522206d..b58185a26 100644
--- a/src/http.c
+++ b/src/http.c
@@ -224,11 +224,11 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = {
[HTTP_ERR_405] =
"HTTP/1.1 405 Method Not Allowed\r\n"
- "Content-length: 146\r\n"
+ "Content-length: 147\r\n"
"Cache-Control: no-cache\r\n"
"Content-Type: text/html\r\n"
"\r\n"
- "
405 Method Not Allowed
\nA request was made of a resource using a request method not supported by that resource\n\n",
+ "405 Method Not Allowed
\nA request was made of a resource using a request method not supported by that resource.\n\n",
[HTTP_ERR_407] =
"HTTP/1.1 407 Unauthorized\r\n"
@@ -305,11 +305,11 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = {
[HTTP_ERR_431] =
"HTTP/1.1 431 Request Header Fields Too Large\r\n"
- "Content-length: 106\r\n"
+ "Content-length: 105\r\n"
"Cache-Control: no-cache\r\n"
"Content-Type: text/html\r\n"
"\r\n"
- "431 Request Header Fields Too Large
\n>Request Header Fields Too Large.\n\n",
+ "431 Request Header Fields Too Large
\nRequest Header Fields Too Large.\n\n",
[HTTP_ERR_500] =
"HTTP/1.1 500 Internal Server Error\r\n"
@@ -321,11 +321,11 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = {
[HTTP_ERR_501] =
"HTTP/1.1 501 Not Implemented\r\n"
- "Content-length: 136\r\n"
+ "Content-length: 135\r\n"
"Cache-Control: no-cache\r\n"
"Content-Type: text/html\r\n"
"\r\n"
- "501 Not Implemented
\n.The server does not support the functionality required to fulfill the request.\n\n",
+ "501 Not Implemented
\nThe server does not support the functionality required to fulfill the request.\n\n",
[HTTP_ERR_502] =
"HTTP/1.1 502 Bad Gateway\r\n"