All error codes

invalid_image_name

HTTP 422 Image name is not valid

What happened

The image name is empty, longer than 50 characters, or contains characters that are not allowed. The two kinds of image take different sets: an image of a server (POST /v1/server-images) takes only Latin letters, digits, spaces, the dot, the underscore and the dash; an ISO image (POST /v1/isos) takes letters of any alphabet, digits, spaces and . _ @ : + ( ) / -.

What to do

Send a name of 1 to 50 allowed characters. When adding an image by URL you may leave name out entirely, and it will be derived from the URL.

Retrying

Fix the request and send it again.

How it arrives

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

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