(status_code=None, detail="", headers=None, comment=None)
Aborts the request immediately by returning an HTTP exception

    In the event that the status_code is a 300 series error, the detail
    attribute will be used as the Location header should one not be
    specified in the headers attribute.
Aborts the request immediately by returning an HTTP exception
Aborts the request immediately by returning an HTTP exception
def abort(status_code=None, detail="", headers=None, comment=None):
    """Aborts the request immediately by returning an HTTP exception

    In the event that the status_code is a 300 series error, the detail
    attribute will be used as the Location header should one not be
    specified in the headers attribute.

    """
    exc = status_map[status_code](detail=detail, headers=headers,
                                  comment=comment)
    log.debug("Aborting request, status: %s, detail: %r, headers: %r, "
              "comment: %r", status_code, detail, headers, comment)
    raise exc
def abort ( status_code = None , detail = "" , headers = None , comment = None ) : exc = status_map [ status_code ] ( detail = detail , headers = headers , comment = comment ) log . debug ( "Aborting request, status: %s, detail: %r, headers: %r, " "comment: %r" , status_code , detail , headers , comment ) raise exc