http_connection_closed
Name | Type | Required | Description |
---|---|---|---|
id | string | + | Unique ID of a request |
url | string | + | Full URL for making connection( can contain custom port ) |
user_data | any | – | User data that was passed to an http.request() call. |
reason | object | + | |
reason.code | int | + | Code of reason |
reason.text | string | + | Text of reason |
code | int | – | HTTP status code returned by an HTTP server. |
code_status | string | – | HTTP status code description as it passed over by an HTTP server. |
Reasons:
Code | Text |
---|---|
1 | Cannot resolve DNS name |
2 | Cannot connect to the server |
3 | SSL Connection Error |
4 | Closed by client |
5 | Closed by server |
6 | Timeout of response is reached |
7 | Unknown error |