mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Use status_code in error response.
Remove code.
This commit is contained in:
@@ -16,10 +16,11 @@ class AuthError(Exception):
|
||||
self.code = code
|
||||
|
||||
def to_dict_v2(self):
|
||||
return {'code': self.code,
|
||||
'message': self.short_message,
|
||||
'fields': self.message,
|
||||
'link': 'link to docs'}
|
||||
return {
|
||||
'status_code': self.code,
|
||||
'message': self.short_message,
|
||||
'fields': self.message
|
||||
}
|
||||
|
||||
|
||||
def get_auth_token(req):
|
||||
|
||||
Reference in New Issue
Block a user