exceptions
pigwig.exceptions
HTTPException(code: int, body: str)
Bases: Exception
raise in a route handler to generate a non-200 response
Parameters:
-
code(int) –interpreted the same way as Response.code
-
body(str) –unlike in Response, must be a
str
Source code in pigwig/exceptions.py
9 10 11 12 | |