# X_ROUTE_STATUS_INVALID

## Means

a route answered a status a rendered page cannot carry

## Typical cause

`withStatus(302, data)` — a 3xx is a `Location` and no body, and a loader only ever produces a body

## Fix

answer 2xx, 4xx or 5xx from `load`; a redirect is `redirect(location)` from `@ultimat3/http`. Out of 200–599 is `X_INVARIANT` from the same screen every render mode uses

[Routes, render and budgets](/error-codes#routes-render-and-budgets)
