# Function redirectDocument

- redirectDocument(url, init?): Response

- A redirect response that will force a document reload to the new location. Sets the status code and the `Location` header. Defaults to "302 Found".

  #### Parameters

  - url: string
  - `Optional` init: number | ResponseInit

  #### Returns Response

  - Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:493