diff --git a/src/sentry/issues/endpoints/group_integration_details.py b/src/sentry/issues/endpoints/group_integration_details.py index 316f5fe4fab3..909305777ed1 100644 --- a/src/sentry/issues/endpoints/group_integration_details.py +++ b/src/sentry/issues/endpoints/group_integration_details.py @@ -96,7 +96,9 @@ def get(self, request: Request, group, integration_id) -> Response: # just linking action = request.GET.get("action") if action not in {"link", "create"}: - return Response({"detail": "Action is required and should be either link or create"}) + return Response( + {"detail": "Action is required and should be either link or create"}, status=400 + ) organization_id = group.project.organization_id result = integration_service.organization_context(