Skip to content

Commit

Permalink
fix(api): Update Endpoint so it Returns 404 as a status_code (#70918)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrajjoshi authored May 15, 2024
1 parent 7fc733c commit 893a38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/api/endpoints/project_profiling_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_on_result(self) -> Any:

def get(self, request: Request, project: Project) -> Response:
if not features.has("organizations:profiling", project.organization, actor=request.user):
return Response(404)
return Response(status=404)

params = self.get_profiling_params(request, project)

Expand Down

0 comments on commit 893a38b

Please sign in to comment.