diff --git a/api/environments/identities/views.py b/api/environments/identities/views.py index ddd01d90fba9..99393f25bc1a 100644 --- a/api/environments/identities/views.py +++ b/api/environments/identities/views.py @@ -169,8 +169,9 @@ def get(self, request): # type: ignore[no-untyped-def] identifier = request.query_params.get("identifier") if not identifier: return Response( - {"detail": "Missing identifier"} - ) # TODO: add 400 status - will this break the clients? + {"detail": "Missing identifier"}, + status=status.HTTP_400_BAD_REQUEST, + ) if request.query_params.get("transient"): identity = Identity(