From: Gunnar Beutner Date: Mon, 9 Nov 2015 09:40:31 +0000 (+0100) Subject: Improve error message for 404s X-Git-Tag: v2.4.0~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa034a96f81a9d4f661d726a0305bd80e80d18ba;p=icinga2 Improve error message for 404s refs #9447 --- diff --git a/lib/remote/httphandler.cpp b/lib/remote/httphandler.cpp index 51e0ab477..b1180ab7b 100644 --- a/lib/remote/httphandler.cpp +++ b/lib/remote/httphandler.cpp @@ -104,7 +104,7 @@ void HttpHandler::ProcessRequest(const ApiUser::Ptr& user, HttpRequest& request, if (!processed) { String path = boost::algorithm::join(request.RequestUrl->GetPath(), "/"); HttpUtility::SendJsonError(response, 404, "The requested path '" + path + - "' could not be found."); + "' could not be found or the request method is not valid for this path."); return; } }