also raise 400 errors when we can't read the client upload stream
This commit is contained in:
parent
37b108bf24
commit
f89794ce07
3 changed files with 21 additions and 10 deletions
|
|
@ -26,3 +26,11 @@ class ServerError(Exception):
|
|||
|
||||
class ServerRedirect(ServerError):
|
||||
"""Used to handle redirects"""
|
||||
|
||||
|
||||
class BadRequest(ServerError):
|
||||
"""Used to trigger an http 400 error"""
|
||||
|
||||
|
||||
class RequestTimeout(ServerError):
|
||||
"""Used to trigger an http 408 error"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue