404 errors should use the 404 status code