Rate this page:

HttpRequestResult

HTTP response.

Props

code

Copy URL
code: 

number

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

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

data

Copy URL
data: 

number[]

Data containing a list of 1-byte numbers corresponding to the HTTP response data when HttpRequestOptions.rawOutput is true. Undefined when HttpRequestOptions.rawOutput is false

error

Copy URL
error: 

string

|

undefined

Error description

headers

Copy URL
headers: 

{key: string, value: string}[]

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

raw_headers

Copy URL
raw_headers: 

string

HTTP headers string returned by a remote server without processing

text

Copy URL
text: 

string

|

undefined

HTTP response body if Content-Type is not binary