def error(self, msg: str, status: int = 400) -> SanicException:
- return SanicException(msg, status_code=status)
+ exception = SanicException(msg, status_code=status)
+
+ return exception
def create_response(self, status: int, output: str) -> HTTPResponse: