diff --git a/src/HttpErrors.h b/src/HttpErrors.h index d1ff96e..b2209af 100644 --- a/src/HttpErrors.h +++ b/src/HttpErrors.h @@ -34,20 +34,20 @@ enum HttpError { /* Returned parser errors match this LUT. */ static const std::string_view httpErrorResponses[] = { "", /* Zeroth place is no error so don't use it */ - "HTTP/1.1 505 HTTP Version Not Supported\r\n\r\n

HTTP Version Not Supported

This server does not support HTTP/1.0.


uWebSockets/20 Server", - "HTTP/1.1 431 Request Header Fields Too Large\r\n\r\n

Request Header Fields Too Large


uWebSockets/20 Server", - "HTTP/1.1 400 Bad Request\r\n\r\n

Bad Request


uWebSockets/20 Server", - "HTTP/1.1 404 File Not Found\r\n\r\n

File Not Found


uWebSockets/20 Server" + "HTTP/1.1 505 HTTP Version Not Supported\r\nConnection: close\r\n\r\n

HTTP Version Not Supported

This server does not support HTTP/1.0.


uWebSockets/20 Server", + "HTTP/1.1 431 Request Header Fields Too Large\r\nConnection: close\r\n\r\n

Request Header Fields Too Large


uWebSockets/20 Server", + "HTTP/1.1 400 Bad Request\r\nConnection: close\r\n\r\n

Bad Request


uWebSockets/20 Server", + "HTTP/1.1 404 File Not Found\r\nConnection: close\r\n\r\n

File Not Found


uWebSockets/20 Server" }; #else /* Anonymized pages */ static const std::string_view httpErrorResponses[] = { "", /* Zeroth place is no error so don't use it */ - "HTTP/1.1 505 HTTP Version Not Supported\r\n\r\n", - "HTTP/1.1 431 Request Header Fields Too Large\r\n\r\n", - "HTTP/1.1 400 Bad Request\r\n\r\n", - "HTTP/1.1 404 File Not Found\r\n\r\n" + "HTTP/1.1 505 HTTP Version Not Supported\r\nConnection: close\r\n\r\n", + "HTTP/1.1 431 Request Header Fields Too Large\r\nConnection: close\r\n\r\n", + "HTTP/1.1 400 Bad Request\r\nConnection: close\r\n\r\n", + "HTTP/1.1 404 File Not Found\r\nConnection: close\r\n\r\n" }; #endif