From 61bb975d6c50f96718ede771ffe7bcf2f5bd048c Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Thu, 10 Oct 2013 11:45:42 -0400 Subject: [PATCH] Add status code 404 to response in tool_runner when a tool does not exist. --- lib/galaxy/webapps/galaxy/controllers/tool_runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy/webapps/galaxy/controllers/tool_runner.py b/lib/galaxy/webapps/galaxy/controllers/tool_runner.py index 7c1140eb755..fd47c964a57 100644 --- a/lib/galaxy/webapps/galaxy/controllers/tool_runner.py +++ b/lib/galaxy/webapps/galaxy/controllers/tool_runner.py @@ -61,6 +61,7 @@ class ToolRunner( BaseUIController ): if not tool: log.error( "index called with tool id '%s' but no such tool exists", tool_id ) trans.log_event( "Tool id '%s' does not exist" % tool_id ) + trans.response.status = 404 return "Tool '%s' does not exist, kwd=%s " % ( tool_id, kwd ) if tool.require_login and not trans.user: message = "You must be logged in to use this tool."