mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
update V2 error response to
{status_code: 403,
errors: [error: AuthError, message: token has expired}]
}
This commit is contained in:
@@ -25,9 +25,13 @@ class InvalidRequest(Exception):
|
||||
Version 2 of the public api error response.
|
||||
'''
|
||||
return {
|
||||
"status_code": self.code,
|
||||
"message": self.message,
|
||||
"fields": self.fields
|
||||
"status_code": self.status_code,
|
||||
"errors": [
|
||||
{
|
||||
"error": self.__class__.__name__,
|
||||
"message": self.message
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user