Completed events
This commit is contained in:
parent
6e28c58e26
commit
a6e5ffb99b
6 changed files with 179 additions and 68 deletions
|
|
@ -34,6 +34,8 @@ ERROR_JSON_RESPONSE = u"""{
|
|||
|
||||
|
||||
class RESTError(HTTPException):
|
||||
code = 400
|
||||
|
||||
templates = {
|
||||
'single_error': SINGLE_ERROR_RESPONSE,
|
||||
'error': ERROR_RESPONSE,
|
||||
|
|
@ -54,7 +56,6 @@ class DryRunClientError(RESTError):
|
|||
|
||||
|
||||
class JsonRESTError(RESTError):
|
||||
|
||||
def __init__(self, error_type, message, template='error_json', **kwargs):
|
||||
super(JsonRESTError, self).__init__(
|
||||
error_type, message, template, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue