---
title: HTTP 302 Redirect Replacement HTTP Status Code
description: When Enable HTTP 302 Redirects is false, this property specifies the HTTP code to return instead of an HTTP 302 (Redirect).
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.302.redirect.http.status.code
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.302.redirect.http.status.code.html
---

# HTTP 302 Redirect Replacement HTTP Status Code

When [Enable HTTP 302 Redirects](org.forgerock.agents.302.redirects.enabled.html) is `false`, this property specifies the HTTP code to return instead of an HTTP 302 (Redirect).

|                          |                                                                                                                                                                                                                                                 |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.302.redirect.http.status.code`                                                                                                                                                                                            |
| Aliases                  | `org.forgerock.agents.302.redirect.http.status.code`   Introduced in Java Agent 5.8.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7.1`org.forgerock.agents.config.json.response.code`   Introduced in Java Agent 5.8.0 |
| Function                 | Global                                                                                                                                                                                                                                          |
| Type                     | Integer                                                                                                                                                                                                                                         |
| Default                  | `200`                                                                                                                                                                                                                                           |
| Bootstrap property       | No                                                                                                                                                                                                                                              |
| Required property        | No                                                                                                                                                                                                                                              |
| Restart required         | No                                                                                                                                                                                                                                              |
| Local configuration file | `AgentConfig.properties`                                                                                                                                                                                                                        |
| AM console               | Tab: `Miscellaneous (from AM 7.1)`Title: `HTTP 302 Redirect Replacement HTTP Status Code`Legacy title: `HTTP 302 Redirect Replacement HTTP Code`                                                                                                |
