Created new exception for handling malformed requests
Wrote tests Raise httpBadRequest on malformed request bodies
This commit is contained in:
@@ -585,3 +585,7 @@ class InstanceExists(Duplicate):
|
|||||||
|
|
||||||
class MigrationError(NovaException):
|
class MigrationError(NovaException):
|
||||||
message = _("Migration error") + ": %(reason)s"
|
message = _("Migration error") + ": %(reason)s"
|
||||||
|
|
||||||
|
|
||||||
|
class MalformedRequestBody(NovaException):
|
||||||
|
message = _("Malformed message body") + ": %(reason)s"
|
||||||
|
|||||||
Reference in New Issue
Block a user