From fa034a96f81a9d4f661d726a0305bd80e80d18ba Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 9 Nov 2015 10:40:31 +0100 Subject: [PATCH] Improve error message for 404s refs #9447 --- lib/remote/httphandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.40.0