def create_error_handlers(blueprint): """Create error handlers on blueprint.""" blueprint.errorhandler(CirculationException)( create_api_errorhandler( status=HTTP_CODES["bad_request"], message="Invalid loan action" ) ) records_rest_error_handlers(blueprint)
def create_error_handlers(blueprint): """Create error handlers on blueprint.""" blueprint.errorhandler(PIDInvalidAction)(create_api_errorhandler( status=403, message='Invalid action')) records_rest_error_handlers(blueprint)
def create_error_handlers(blueprint): """Create error handlers on blueprint.""" blueprint.errorhandler(PIDInvalidAction)(create_api_errorhandler( status=403, message='Invalid action' )) records_rest_error_handlers(blueprint)
def create_error_handlers(blueprint): """Create error handlers on blueprint.""" records_rest_error_handlers(blueprint)
def create_error_handlers(blueprint): """Create error handlers on blueprint.""" blueprint.errorhandler(LoanActionError)(create_api_errorhandler( status=HTTP_CODES['method_not_allowed'], message='Invalid loan action' )) records_rest_error_handlers(blueprint)