exception documentation

class RequestedRangeNotSatisfiable(HTTPException): (source)

View In Hierarchy

*416* `Requested Range Not Satisfiable` The client asked for an invalid part of the file. .. versionadded:: 0.7

Method __init__ Takes an optional `Content-Range` header value based on ``length`` parameter.
Method get_headers Get a list of headers.
Class Variable code Undocumented
Class Variable description Undocumented
Instance Variable length Undocumented
Instance Variable units Undocumented

Inherited from HTTPException:

Method __call__ Call the exception as WSGI application.
Method __repr__ Undocumented
Method __str__ Undocumented
Method get_body Get the HTML body.
Method get_description Get the description.
Method get_response Get a response object. If one was passed to the exception it's returned directly.
Instance Variable response Undocumented
Property name The status name.
def __init__(self, length: t.Optional[int] = None, units: str = 'bytes', description: t.Optional[str] = None, response: t.Optional[Response] = None): (source)

Takes an optional `Content-Range` header value based on ``length`` parameter.

def get_headers(self, environ: t.Optional[WSGIEnvironment] = None, scope: t.Optional[dict] = None) -> t.List[t.Tuple[str, str]]: (source)

Get a list of headers.

Undocumented

Undocumented