OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | RestError |
class | SpecsError |
class | ValidationError |
Functions | |
def | abort (code=HTTPStatus.INTERNAL_SERVER_ERROR, message=None, **kwargs) |
def flask_restplus.errors.abort | ( | code = HTTPStatus.INTERNAL_SERVER_ERROR , |
|
message = None , |
|||
** | kwargs | ||
) |
Properly abort the current request. Raise a `HTTPException` for the given status `code`. Attach any keyword arguments to the exception for later processing. :param int code: The associated HTTP status code :param str message: An optional details message :param kwargs: Any additional data to pass to the error payload :raise HTTPException: