# Fix target.code_refused

target.code_refused
Recorded exits: 1. [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/target.code_refused, owners/deployment-targets, targets/installing-with-infra-agent-md, reference/error-code-catalog

## Steps

Cause: The code is unknown, used, expired, or for another target
Next action: Download a fresh infra-agent.md and use its `CODE`
[3]

Cause: 403
Next action: The registration code is unknown, used or expired, or for another target. | Download a fresh infra-agent.md from the console. | targets-api.ts:52, targets-api.ts:101
[4]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/target.code_refused — Reference](/docs/fix/target.code_refused.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [owners/deployment-targets — Errors](/docs/owners/deployment-targets.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [targets/installing-with-infra-agent-md — Errors](/docs/targets/installing-with-infra-agent-md.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [owners/deployment-targets](/docs/owners/deployment-targets/known-issues.md)
- [targets/installing-with-infra-agent-md](/docs/targets/installing-with-infra-agent-md/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/target.code_refused: <what is wrong>; error target.code_refused" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
