also raise 400 errors when we can't read the client upload stream

This commit is contained in:
Mike McLean 2022-03-01 17:57:07 -05:00 committed by Tomas Kopecek
parent 37b108bf24
commit f89794ce07
3 changed files with 21 additions and 10 deletions

View file

@ -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"""