added error code for bad requests

Change-Id: I0c83778830aefb71edc16311e24ec6e1c1bcf432
This commit is contained in:
the.bling 2017-04-07 16:50:21 +05:30
parent 085f35863d
commit aca3fc8ad8
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ class HostBinaryNotFound(NotFound):
class MalformedRequestBody(MeteosException):
message = _("Malformed message body: %(reason)s.")
code = 400
class AdminRequired(NotAuthorized):