Response returned by HTTP.SendRequest.

interface HttpResponse {
    statusCode: number;
    body: string;
}

Properties

Properties

statusCode: number

HTTP status code (e.g. 200, 404). Set to 0 if the request failed due to a network error.

body: string

Response body as a string. Contains the error message when statusCode is 0.