Merge pull request #814 from Frzk/forbidden-exception

Added a Forbidden exception
This commit is contained in:
Raphael Deem
2017-06-30 18:11:23 -07:00
committed by GitHub
2 changed files with 16 additions and 1 deletions

View File

@@ -194,6 +194,11 @@ class ContentRangeError(SanicException):
}
@add_status_code(403)
class Forbidden(SanicException):
pass
class InvalidRangeType(ContentRangeError):
pass