Variable: NETWORK_ERRORS
const NETWORK_ERRORS: {
AUTHENTICATION_FAILED: "Authentication failed";
AUTHORIZATION_FAILED: "Authorization failed";
BAD_REQUEST: "Bad request";
CONNECTION_FAILED: "Network connection failed";
CONNECTION_TIMEOUT: "Connection timed out";
DNS_RESOLUTION_FAILED: "DNS resolution failed";
HOST_UNREACHABLE: "Host unreachable";
RESOURCE_NOT_FOUND: "Resource not found";
SERVER_ERROR: "Server error";
SSL_CONNECTION_FAILED: "SSL/TLS connection failed";
};
Defined in: shared/utils/errorCatalog.ts:213
Network-related error messages.
Type Declarationโ
AUTHENTICATION_FAILEDโ
readonly AUTHENTICATION_FAILED: "Authentication failed" = "Authentication failed";
Error when authentication fails
AUTHORIZATION_FAILEDโ
readonly AUTHORIZATION_FAILED: "Authorization failed" = "Authorization failed";
Error when authorization fails
BAD_REQUESTโ
readonly BAD_REQUEST: "Bad request" = "Bad request";
Error when request is malformed
CONNECTION_FAILEDโ
readonly CONNECTION_FAILED: "Network connection failed" = "Network connection failed";
Error when network connection fails
CONNECTION_TIMEOUTโ
readonly CONNECTION_TIMEOUT: "Connection timed out" = "Connection timed out";
Error when connection times out
DNS_RESOLUTION_FAILEDโ
readonly DNS_RESOLUTION_FAILED: "DNS resolution failed" = "DNS resolution failed";
Error when DNS resolution fails
HOST_UNREACHABLEโ
readonly HOST_UNREACHABLE: "Host unreachable" = "Host unreachable";
Error when host cannot be reached
RESOURCE_NOT_FOUNDโ
readonly RESOURCE_NOT_FOUND: "Resource not found" = "Resource not found";
Error when resource is not found
SERVER_ERRORโ
readonly SERVER_ERROR: "Server error" = "Server error";
Error when server returns error
SSL_CONNECTION_FAILEDโ
readonly SSL_CONNECTION_FAILED: "SSL/TLS connection failed" = "SSL/TLS connection failed";
Error when SSL/TLS connection fails
Remarksโ
Error messages for network operations, connectivity issues, and communication errors.