]> granicus.if.org Git - icinga2/commitdiff
Improve error message for 404s
authorGunnar Beutner <gunnar@beutner.name>
Mon, 9 Nov 2015 09:40:31 +0000 (10:40 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 9 Nov 2015 09:48:24 +0000 (10:48 +0100)
refs #9447

lib/remote/httphandler.cpp

index 51e0ab47700f68ac3400abc3eb94ab59a8937657..b1180ab7bd0886804861327c74d3c6d12a55b3c0 100644 (file)
@@ -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;
        }
 }