Skip to content

httpIsRedirectStatus

httpIsRedirectStatus(status): boolean

Defined in: packages/net-http/src/http/is-redirect-status.ts:11

Check if the given HTTP status code is a redirect status code.

number

HTTP status code

boolean

True if the status code is a redirect status (301, 302, 303, 307, 308), false otherwise.

https://fetch.spec.whatwg.org/#statuses