From af1caaf7c9dcf130d11620ca6f9f22b1eb261724 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Fri, 16 Feb 2024 10:42:22 -0500 Subject: [PATCH] remove status code from json error message --- relay/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/misc.py b/relay/misc.py index d730ccf..face943 100644 --- a/relay/misc.py +++ b/relay/misc.py @@ -209,7 +209,7 @@ class Response(AiohttpResponse): ctype: str = 'text') -> Response: if ctype == 'json': - body = json.dumps({'status': status, 'error': body}) + body = json.dumps({'error': body}) return cls.new(body=body, status=status, ctype=ctype)