diff --git a/src/server/response.cpp b/src/server/response.cpp index 74d8ff9fd..49caed531 100644 --- a/src/server/response.cpp +++ b/src/server/response.cpp @@ -100,14 +100,13 @@ std::unique_ptr ContentResponseBlueprint::generateResponseObjec HTTPErrorHtmlResponse::HTTPErrorHtmlResponse(const InternalServer& server, const RequestContext& request, int httpStatusCode, - const std::string& templateStr, const std::string& pageTitleMsg, const std::string& headingMsg) : ContentResponseBlueprint(&server, &request, httpStatusCode, "text/html; charset=utf-8", - templateStr) + RESOURCE::templates::error_html) { kainjow::mustache::list emptyList; this->m_data = kainjow::mustache::object{ @@ -122,7 +121,6 @@ HTTP404HtmlResponse::HTTP404HtmlResponse(const InternalServer& server, : HTTPErrorHtmlResponse(server, request, MHD_HTTP_NOT_FOUND, - RESOURCE::templates::_404_html, "Content not found", "Not Found") { diff --git a/src/server/response.h b/src/server/response.h index 7481cbddc..245c1396d 100644 --- a/src/server/response.h +++ b/src/server/response.h @@ -184,7 +184,6 @@ struct HTTPErrorHtmlResponse : ContentResponseBlueprint HTTPErrorHtmlResponse(const InternalServer& server, const RequestContext& request, int httpStatusCode, - const std::string& templateStr, const std::string& pageTitleMsg, const std::string& headingMsg); diff --git a/static/resources_list.txt b/static/resources_list.txt index ab583d7a6..c51f19acd 100644 --- a/static/resources_list.txt +++ b/static/resources_list.txt @@ -35,8 +35,8 @@ skin/block_external.js skin/search_results.css templates/search_result.html templates/no_search_result.html +templates/error.html templates/400.html -templates/404.html templates/500.html templates/index.html templates/suggestion.json diff --git a/static/templates/404.html b/static/templates/error.html similarity index 100% rename from static/templates/404.html rename to static/templates/error.html