ErrLookup › sindresorhus/got

sindresorhus/got

🌐 Human-friendly and powerful HTTP request library for Node.js · TypeScript · ★ 14,929

Analyzed at e3924aa1e5 on 2026-08-03. 51 documented errors.

Code / MessageTypeSeverityTags
ERR_RETRYING
Retrying
exception info retry, hooks, internal-control-flow, promise-api
The `afterResponse` hook returned an invalid value
validation error hooks, after-response, typescript, contract-violation
A retry listener has been attached already.
exception error events, retry, stream-api, contract-violation
Missing `url` property
validation error url, configuration, constructor, validation
The reassigned stream body must be readable. Ensure you prov
validation error retry, hooks, stream-body, before-retry, resource-leak
ERR_HTTP_CONTENT_LENGTH_MISMATCH
Content-Length mismatch: expected ${this._expectedContentLength} bytes, received
exception error content-length, compression, network, read-error
The `${options.method}` method cannot be used with a body
validation error http-method, body, rfc, validation
Non-native FormData is not supported. Use globalThis.FormDat
validation error formdata, multipart, polyfill, node-version
ECONNRESET
The server aborted pending request
exception error network, econnreset, server-abort, retry
beforeCache hooks must be synchronous. The hook returned a P
validation error hooks, before-cache, caching, synchronous, async
beforeCache hook must return false or undefined. To modify t
validation error hooks, before-cache, caching, contract-violation, return-value
Use `undefined` instead of `null` to delete the `${key}` hea
validation error headers, null-vs-undefined, validation, configuration
The `${key}` header must be a single value
validation error headers, transfer-encoding, framing, validation
The `beforeError` hook must return an Error instance. Receiv
validation error hooks, before-error, error-handling, contract-violation
The `url` option must be relative when `allowAbsoluteUrls` i
validation error url, prefix-url, configuration, security, breaking-change
The `url` option must stay on the same origin as `prefixUrl`
validation error url, prefix-url, same-origin, security, cors
HTTP/2 pseudo-headers are not supported in `options.headers`
validation error headers, http2, pseudo-headers, validation
The defaults must be passed as the third argument
validation error options, constructor, internal-api, argument-order
The `url` option is mutually exclusive with the `input` argu
validation error options, constructor, url, config
Unexpected option: ${key}
validation error options, merge, typo, validation, config
Unexpected agent option: ${key}
validation error options, agent, validation, config
Unexpected timeout option: ${key}
validation error options, timeout, validation, config
`url` must not start with a slash
validation error options, url, prefix-url, validation
`url` protocol must be followed by `//`
validation error options, url, validation, parsing
Using UNIX domain sockets but option `enableUnixSockets` is
validation error options, url, unix-socket, validation, network
The `searchParameters` option does not exist. Use `searchPar
validation error options, search-params, typo, deprecation
Unexpected hook event: ${knownHookEvent}
validation error options, hooks, validation, typo, config
Missing hook event: ${knownHookEvent}
validation error options, hooks, validation, config
The `followRedirects` option does not exist. Use `followRedi
validation error options, redirect, typo, deprecation
Invalid DNS lookup IP version: ${value as string}
validation error options, dns, validation, config, network
The maximum acceptable retry noise is +/- 100ms, got ${value
validation error options, retry, validation, config, network
Unexpected retry option: ${key}
validation error options, retry, validation, typo, config
Cache option `${key}` does not exist
validation error options, cache, validation, config
HTTPS option `${key}` does not exist
validation error options, https, tls, validation, security, config
To get a Uint8Array, set `options.responseType` to `buffer`
validation error options, encoding, response-type, migration, config
Invalid `responseType` option: ${value as string}
validation error options, response-type, validation, config
Parameter `auth` is deprecated. Use `username` / `password`
validation error deprecation, auth, migration, options
The request function must return a value
validation error custom-request, transport, http
Failed to parse Link header: ${value}
exception error link-header, parsing, pagination
Invalid format of the Link header reference: ${trimmedUriRef
exception error link-header, parsing, pagination, rfc-8288
Unexpected end of Link header parameters: ${rawLinkParameter
exception error link-header, parsing, pagination, rfc-8288
Failed to parse Link header: ${link}
exception error link-header, parsing, pagination, rfc-8288
ERR_BODY_PARSE_FAILURE
Unknown body type '${responseType as string}'
exception error response, body-parsing, typescript, configuration
The session is gracefully closing. No new streams are allowe
exception error http2, connection-pooling, concurrency
Protocol "${this.protocol}" not supported. Expected "https:"
validation error http2, protocol, tls
Parameters `path` and `pathname` are mutually exclusive.
validation error url, validation, options
Parameters `path` and `search` are mutually exclusive.
validation error url, validation, options
Parameters `path` and `searchParams` are mutually exclusive.
validation error url, validation, options
Parameters `search` and `searchParams` are mutually exclusiv
validation error url, validation, options
No URL protocol specified
validation error url, validation, configuration
The `url` option is not supported in options objects. Pass i
validation error url, api-usage, migration