Skip to main content

Security fix: not found

typehttps://docs.frem.sh/reference/api/errors/autofix-not-found
HTTP status404 Not Found

What it means

Returned by POST /orgs/{org}/code-security/deps/findings/{id}/autofix and POST /orgs/{org}/code-security/sast/findings/{id}/autofix (Security fixes). No pull request was requested.

Since 2026-10-14 the same refusal is answered with the type security-fix-not-found from POST /orgs/{org}/dependency-updates/security-fixes/requests and with the type ai-fix-not-found from POST /orgs/{org}/code-security/sast/findings/{id}/ai-fix. The paths above are deprecated and keep answering autofix-not-found until 2027-10-15. Branch on either type.

Example detail message returned with this error:

  • The finding does not exist in this organisation.

The response also carries "reason": "not_found".

What to do

Check the finding id from GET …/code-security/deps/findings.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/autofix-not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "...",
  "reason": "not_found"
}

Branch on type, not on title or detail - those are human-readable and may be reworded.