All error codes

invalid_request

HTTP 422 Request is invalid

What happened

The request body failed validation: an unknown field, a missing required field, a value of the wrong type or outside the allowed range, a body that is not a JSON object, or a body sent to an endpoint that takes none. It is also used for a body that contradicts itself, such as a network id sent together with public set to true.

What to do

Read invalid_params in the response - each entry names the field and the reason - correct those fields and send the request again.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_request",
    "title": "Request is invalid",
    "status": 422,
    "code": "invalid_request",
    "request_id": "a277dcd1ca652c65"
}

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