All error codes

resources_managed_by_plan

HTTP 422 Cores, memory and disk are defined by the plan

What happened

You sent cores, memory_mb or disk_gb to a server type where the size is defined by the plan. It appears when creating such a server, when changing its resources, and when adding or growing a disk on it.

What to do

Change plan_id instead - GET /v1/server-types/{id}/pricing lists the plans and what each one contains. Send the size fields only on server types whose pricing_mode is not the plan-based one.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/resources_managed_by_plan",
    "title": "Cores, memory and disk are defined by the plan",
    "status": 422,
    "code": "resources_managed_by_plan",
    "request_id": "a277dcd1ca652c65"
}

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