All error codes

plan_downgrade_not_allowed

HTTP 422 A plan must match or exceed current cores, memory and disk

What happened

The plan you asked for is smaller than the server's current size in at least one of cores, memory or disk. Plans move upwards only, because a disk cannot be shrunk afterwards.

What to do

Choose a plan whose cores, memory and disk all match or exceed the current ones; GET /v1/server-types/{id}/pricing lists them with their contents. Asking for the plan the server already has is not an error - it returns 200 and the current state.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/plan_downgrade_not_allowed",
    "title": "A plan must match or exceed current cores, memory and disk",
    "status": 422,
    "code": "plan_downgrade_not_allowed",
    "request_id": "a277dcd1ca652c65"
}

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