In preparation for adding endpoint for stubbing, moved 404 response to
middleware