diff --git a/treeherder/webapp/api/logslice.py b/treeherder/webapp/api/logslice.py
index <HASH>..<HASH> 100644
--- a/treeherder/webapp/api/logslice.py
+++ b/treeherder/webapp/api/logslice.py
@@ -75,4 +75,4 @@ class LogSliceView(viewsets.ViewSet):
                     gz_file.close()
 
         else:
-            return Response("job_artifact {0} not found".format(job_id), 404)
+            raise ResourceNotFoundException("job_artifact {0} not found".format(job_id))
replaced returning a response with raising an exception