aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/docs/api/Errors.md
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-02-28 21:59:12 +0100
committerEgor Tensin <egor@tensin.name>2026-02-28 22:19:57 +0100
commit9611c248995ad3bacda1d0a93d0b5e1e6605d162 (patch)
treeeb3ae35b426e9d72e7cb34e8e9cc0453745a8e17 /node_modules/undici/docs/api/Errors.md
parentDEVELOPMENT.md: expand on sources (diff)
downloadcleanup-path-9611c248995ad3bacda1d0a93d0b5e1e6605d162.tar.gz
cleanup-path-9611c248995ad3bacda1d0a93d0b5e1e6605d162.zip
upgrade actions/core to version 2
Diffstat (limited to 'node_modules/undici/docs/api/Errors.md')
-rw-r--r--node_modules/undici/docs/api/Errors.md47
1 files changed, 0 insertions, 47 deletions
diff --git a/node_modules/undici/docs/api/Errors.md b/node_modules/undici/docs/api/Errors.md
deleted file mode 100644
index 917e45d..0000000
--- a/node_modules/undici/docs/api/Errors.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# 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`.