Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-undici /
api /
Delete
Unzip
Name
Size
Permission
Date
Action
Agent.md
2.73
KB
-rw-r--r--
2023-10-11 19:12
BalancedPool.md
2.75
KB
-rw-r--r--
2023-10-11 19:12
CacheStorage.md
1.05
KB
-rw-r--r--
2023-10-11 19:12
Client.md.gz
3.4
KB
-rw-r--r--
2023-10-11 19:12
Connector.md
3.38
KB
-rw-r--r--
2023-10-11 19:12
ContentType.md
1.1
KB
-rw-r--r--
2023-10-11 19:12
Cookies.md
2
KB
-rw-r--r--
2023-10-11 19:12
DiagnosticsChannel.md.gz
1.38
KB
-rw-r--r--
2023-10-11 19:12
DispatchInterceptor.md
1.49
KB
-rw-r--r--
2023-10-11 19:12
Dispatcher.md.gz
6.55
KB
-rw-r--r--
2023-10-11 19:12
Errors.md
3.48
KB
-rw-r--r--
2023-10-11 19:12
Fetch.md
1.17
KB
-rw-r--r--
2023-10-11 19:12
MockAgent.md.gz
2.97
KB
-rw-r--r--
2023-10-11 19:12
MockClient.md
1.97
KB
-rw-r--r--
2023-10-11 19:12
MockErrors.md
595
B
-rw-r--r--
2023-10-11 19:12
MockPool.md.gz
2.95
KB
-rw-r--r--
2023-10-11 19:12
Pool.md
2.7
KB
-rw-r--r--
2023-10-11 19:12
PoolStats.md
775
B
-rw-r--r--
2023-10-11 19:12
ProxyAgent.md
3.72
KB
-rw-r--r--
2023-10-11 19:12
WebSocket.md
1.46
KB
-rw-r--r--
2023-10-11 19:12
api-lifecycle.md.gz
2.62
KB
-rw-r--r--
2023-10-11 19:12
Save
Rename
# Errors Undici exposes a variety of error objects that you can use to enhance your error handling. You can find all the error objects inside the `errors` key. ```js import { errors } from 'undici' ``` | Error | Error Codes | Description | | ------------------------------------ | ------------------------------------- | ------------------------------------------------------------------------- | | `UndiciError` | `UND_ERR` | all errors below are extended from `UndiciError`. | | `ConnectTimeoutError` | `UND_ERR_CONNECT_TIMEOUT` | socket is destroyed due to connect timeout. | | `HeadersTimeoutError` | `UND_ERR_HEADERS_TIMEOUT` | socket is destroyed due to headers timeout. | | `HeadersOverflowError` | `UND_ERR_HEADERS_OVERFLOW` | socket is destroyed due to headers' max size being exceeded. | | `BodyTimeoutError` | `UND_ERR_BODY_TIMEOUT` | socket is destroyed due to body timeout. | | `ResponseStatusCodeError` | `UND_ERR_RESPONSE_STATUS_CODE` | an error is thrown when `throwOnError` is `true` for status codes >= 400. | | `InvalidArgumentError` | `UND_ERR_INVALID_ARG` | passed an invalid argument. | | `InvalidReturnValueError` | `UND_ERR_INVALID_RETURN_VALUE` | returned an invalid value. | | `RequestAbortedError` | `UND_ERR_ABORTED` | the request has been aborted by the user | | `ClientDestroyedError` | `UND_ERR_DESTROYED` | trying to use a destroyed client. | | `ClientClosedError` | `UND_ERR_CLOSED` | trying to use a closed client. | | `SocketError` | `UND_ERR_SOCKET` | there is an error with the socket. | | `NotSupportedError` | `UND_ERR_NOT_SUPPORTED` | encountered unsupported functionality. | | `RequestContentLengthMismatchError` | `UND_ERR_REQ_CONTENT_LENGTH_MISMATCH` | request body does not match content-length header | | `ResponseContentLengthMismatchError` | `UND_ERR_RES_CONTENT_LENGTH_MISMATCH` | response body does not match content-length header | | `InformationalError` | `UND_ERR_INFO` | expected error with reason | | `ResponseExceededMaxSizeError` | `UND_ERR_RES_EXCEEDED_MAX_SIZE` | response body exceed the max size allowed | ### `SocketError` The `SocketError` has a `.socket` property which holds socket metadata: ```ts interface SocketInfo { localAddress?: string localPort?: number remoteAddress?: string remotePort?: number remoteFamily?: string timeout?: number bytesWritten?: number bytesRead?: number } ``` Be aware that in some cases the `.socket` property can be `null`.