diff --git a/src/HttpErrors.h b/src/HttpErrors.h index 580e5bc..d1ff96e 100644 --- a/src/HttpErrors.h +++ b/src/HttpErrors.h @@ -29,6 +29,8 @@ enum HttpError { HTTP_ERROR_404_FILE_NOT_FOUND = 4 }; +#ifndef UWS_HTTPRESPONSE_NO_WRITEMARK + /* Returned parser errors match this LUT. */ static const std::string_view httpErrorResponses[] = { "", /* Zeroth place is no error so don't use it */ @@ -37,6 +39,18 @@ static const std::string_view httpErrorResponses[] = { "HTTP/1.1 400 Bad Request\r\n\r\n