//#region src/redirects/status.ts
/**
* Redirect rule status codes.
*
* A redirect rule's `type` is either a *redirect* status (issues a `Location`
* header) or a *terminal* status (serves the status with no target). Terminal
* statuses let editors mark a URL as intentionally gone:
* - `410 Gone` — permanently and intentionally deleted (Google deindexes it
*   faster than a 404).
* - `451 Unavailable For Legal Reasons`.
*/
/** Statuses that issue an HTTP redirect (require a destination). */
const REDIRECT_STATUSES = [
	301,
	302,
	307,
	308
];
/** Terminal statuses that serve a status with no `Location` / no destination. */
const TERMINAL_STATUSES = [410, 451];
/** All values accepted as a redirect rule `type`. */
const REDIRECT_RULE_STATUSES = [...REDIRECT_STATUSES, ...TERMINAL_STATUSES];
/** True for terminal statuses (410/451) — served directly, with no target. */
function isTerminalStatus(type) {
	return TERMINAL_STATUSES.includes(type);
}

//#endregion
export { isTerminalStatus as n, REDIRECT_RULE_STATUSES as t };
//# sourceMappingURL=status-CqJQX1QN.mjs.map