mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-08 17:48:00 +00:00
remove status code from json error message
This commit is contained in:
parent
afad948f85
commit
af1caaf7c9
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue