Added exception for 413 Request Entity Too Large
This commit is contained in:
@@ -83,6 +83,11 @@ class PreconditionFailed(ClientError):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class RequestEntityTooLarge(ClientError):
|
||||||
|
"""413 Request Entity Too Large"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ResourceInvalid(ClientError):
|
class ResourceInvalid(ClientError):
|
||||||
"""422 Invalid
|
"""422 Invalid
|
||||||
"""
|
"""
|
||||||
@@ -116,6 +121,7 @@ _exception_map = {
|
|||||||
409: ResourceConflict,
|
409: ResourceConflict,
|
||||||
410: ResourceGone,
|
410: ResourceGone,
|
||||||
412: PreconditionFailed,
|
412: PreconditionFailed,
|
||||||
|
413: RequestEntityTooLarge,
|
||||||
422: ResourceInvalid,
|
422: ResourceInvalid,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user