From ce035a20073627b1e960cf758c60da73318ce261 Mon Sep 17 00:00:00 2001 From: Matt Duncan Date: Fri, 1 May 2026 17:24:01 -0700 Subject: [PATCH] fix(issues): Return 400 for invalid action on group integration details GroupIntegrationDetailsEndpoint.get returned an error body without status=400 when the action query parameter was missing or invalid, so clients received HTTP 200 with a detail-shaped error. Co-Authored-By: Claude Opus 4.7 --- src/sentry/issues/endpoints/group_integration_details.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(