All error codes

invalid_tag

HTTP 422 Tag is not valid

What happened

On removal: the tag in the path is empty, longer than 200 bytes, contains characters that cannot occur in a stored tag (control characters or a slash), or begins with the reserved hb- prefix that the platform keeps for its own markers. On adding: only the hb- prefix gives this code; a tag outside the rule for new tags (Latin letters, digits, dot, dash and underscore, 1 to 50 characters) is refused as invalid_request naming the tag field.

What to do

Send a non-empty tag with no control characters or slashes that does not start with hb-. When removing a tag, URL-encode it exactly as it is stored - a plus sign must stay a plus sign, or you will address a different tag.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_tag",
    "title": "Tag is not valid",
    "status": 422,
    "code": "invalid_tag",
    "request_id": "a277dcd1ca652c65"
}

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