All error codes

project_mismatch

HTTP 400 The request names a project other than the key's own

What happened

The request names two different projects: a project key with a Fiberax-Project header that is not its own project, or a path /v1/projects/{id} with a header naming another project. The request is refused rather than sent to either project, so that a script holding the wrong key never changes the wrong project.

What to do

Drop the header or make it name the same project. A project key needs no header at all; an account key on /v1/projects/{id} takes the project from the path.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/project_mismatch",
    "title": "The request names a project other than the key's own",
    "status": 400,
    "code": "project_mismatch",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.