mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-12-22 03:01:08 +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