mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
update V2 error response to
{status_code: 403,
errors: [error: AuthError, message: token has expired}]
}
This commit is contained in:
@@ -18,8 +18,12 @@ class AuthError(Exception):
|
||||
def to_dict_v2(self):
|
||||
return {
|
||||
'status_code': self.code,
|
||||
'message': self.short_message,
|
||||
'fields': self.message
|
||||
"errors": [
|
||||
{
|
||||
"error": "AuthError",
|
||||
"message": self.short_message
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user