Skip to navigation

http.Response

View as MarkdownOpen in Claude

HTTP response body and status code.

Members

body

http.Response.bodystring

Response body as a string.

retry_after

http.Response.retry_aftertime

Positive Retry-After duration, or zero when the response did not provide one.

status_code

http.Response.status_codeint

HTTP status code.

raise_for_status

http.Response.raise_for_status()

Fail unless the status code is 2xx. The error carries only the status code, never the response body or headers. Combine with maestro={“use_result”: True} to branch instead of failing.