ErrLookup › sindresorhus/got

sindresorhus/got

🌐 Human-friendly and powerful HTTP request library for Node.js · TypeScript · 25 source files

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