All error codes

invalid_name

HTTP 422 Name is not valid

What happened

The name was rejected: it is empty, too long, or contains characters that are not allowed. Names take letters, digits, spaces, hyphens, underscores and dots, and a network name is limited to 30 characters.

What to do

Send a name within those rules and repeat the request. A name rejected by the request body check comes back as invalid_request instead, and only that code names the field in invalid_params.

Retrying

Fix the request and send it again.

How it arrives

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

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