HttpResponse
What a request returns
Returned by every Http call. text and json read the body; ok is true for a 2xx status.
Properties
okBooleanTrue if status 200-299
statusNumberHTTP status code
textStringBody as string
jsonAnyParsed JSON or null
headersAnyResponse headers (lowercase keys)
urlStringFinal URL (after redirects)
staleBooleanTrue if from stale cache
mimeTypeStringResponse MIME type
errorStringWhy the request failed, or absent when it did not: "timeout", "network_error" or "server_error". Http never throws for a transport failure. Check ok and branch on this.