Skip to content

ExecuteHttpResult

Result returned by executeHttp.

ok, status, statusText, headers and body describe the vendor's response, not the Integration Service call that carried it. Like execute, this does not throw on non-2xx responses.

Header names are lowercase. A header the vendor sent more than once is one value, joined with ,.

Extends

Properties

Property Type Description
body unknown Parsed JSON body when the response is JSON, raw text otherwise.
headers Record<string, string> Response headers as a flat record.
isVendorError boolean True when the vendor answered with a non-2xx status. False when the call failed before reaching the vendor, in which case the fields describe the Integration Service response.
ok boolean True for HTTP 2xx responses.
status number HTTP status code from the underlying call.
statusText string HTTP status text from the underlying call.