diff --git a/src/HttpErrors.h b/src/HttpErrors.h
index a17a1c737..28a1354a4 100644
--- a/src/HttpErrors.h
+++ b/src/HttpErrors.h
@@ -31,7 +31,7 @@ enum HttpError {
#ifndef UWS_HTTPRESPONSE_NO_WRITEMARK
/* Returned parser errors match this LUT. */
-static const std::string_view httpErrorResponses[] = {
+static constexpr std::string_view httpErrorResponses[] = {
"", /* Zeroth place is no error so don't use it */
"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\nRequest Header Fields Too Large
uWebSockets/20 Server",
@@ -40,7 +40,7 @@ static const std::string_view httpErrorResponses[] = {
#else
/* Anonymized pages */
-static const std::string_view httpErrorResponses[] = {
+static constexpr std::string_view httpErrorResponses[] = {
"", /* Zeroth place is no error so don't use it */
"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",