All error codes

firewall_apply_failed

HTTP 503 The platform did not accept the firewall change

What happened

The platform refused part of the firewall change: setting the options, creating a rule, or removing an old rule failed. If a rule could not be created, the rules already created in that request are removed again and the set is left as it was. If an old rule could not be removed, or the firewall could not be switched on after the new rules were in place, the server is left in a partial state: the old rules alongside the new ones, or the declared rules with the previous on or off setting.

What to do

Read the firewall back to see what is actually in place, then send the same full desired state again later. Repeating the request converges on what you declared.

Retrying

The request itself is fine. Repeat it later; after a 5xx use a new idempotency key and read the resource first.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/firewall_apply_failed",
    "title": "The platform did not accept the firewall change",
    "status": 503,
    "code": "firewall_apply_failed",
    "request_id": "a277dcd1ca652c65"
}

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