SIGN UP

HttpRequestResult

HTTP response

Properties

code

code: Number

Response code. HTTP code (2xx-5xx) or one of our internal status codes:

0Voxengine limits were violated (e.g. HTTP request count exceeded)
-1Unknown error
-2Malformed URL
-3Host not found
-4Connection error
-5Too many redirects
-6Network error
-7Timeout
-8Internal error

data

data: Object

If Net.HttpRequestOptions.rawOutput is true, the data will contain a list of 1-byte numbers corresponding to HTTP response data. If Net.HttpRequestOptions.rawOutput is false, the data will be undefined.

error

error: String

In case of an error contains the error description

headers

headers: Array

List of dictionaries with key and value fields representing HTTP headers returned by the remote server

raw_headers

raw_headers: String

HTTP headers string returned by the remote server, without processing

text

text: String

HTTP response body if Content-Type is not binary