Skip to content
CShift0.45

HttpError

Error enum · namespace System.Net · Since 0.42

error HttpError

The errors of HTTP requests (Http.Send). A response with an error status (404, 500, …) is not an error: it is an HttpResponse whose HttpResponse.IsSuccess is false.

Value Number Description
InvalidUrl 1 The URL is not of the form http://host[:port]/path or https://host[:port]/path.
CannotResolve 2 The name of the host is unknown (or there is no network).
CannotConnect 3 The server cannot be reached, or the encrypted connection (TLS) could not be made: a certificate that is not trusted, for example.
Timeout 4 The server did not answer in time (HttpRequest.TimeoutMilliseconds).
Failed 5 Sending the request or receiving the response failed.
NotSupported 6 The platform has no HTTP client yet: WebAssembly, AmigaOS, macOS; or libcurl is missing (Linux).