diff --git a/core/application.cpp b/core/application.cpp index ce9b555..6a546da 100644 --- a/core/application.cpp +++ b/core/application.cpp @@ -22,15 +22,13 @@ void Application::setup_middleware() { } void Application::default_fallback_error_handler(int error_code, Request *request) { - std::string body = "
Internal server error! :("; - request->response->setBody(body); + request->response->setBody(default_generic_error_body); request->finalized = true; request->send(); } void Application::default_404_error_handler(int error_code, Request *request) { - std::string body = "404 :("; - request->response->setBody(body); + request->response->setBody(default_error_404_body); request->finalized = true; request->send(); } @@ -144,3 +142,6 @@ std::function