l.s.t.treq : module documentation

Part of lp.services.twistedsupport

Utilities for HTTP request handling with Twisted and treq.
Function check_status Fail with an error if the response has an error status.
def check_status(response):
Fail with an error if the response has an error status.

An error status is a 4xx or 5xx code (RFC 7231).

:rtype: A `Deferred` that fires with the response itself if the status
    is a known non-error code, or that fails it with
    :exc:`twisted.web.error.Error` otherwise.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.