ErrorsAll codes
POSTAL_CODE_INVALID_ES
Invalid Spanish postal code: '‹value›'. Must be 5 digits
Category: General
| HTTP status | 422 Unprocessable Content |
Example response
When this error occurs, the API answers 422 Unprocessable Content with a JSON body of this shape:
{
"type": "https://docs.beel.es/errors/POSTAL_CODE_INVALID_ES",
"title": "POSTAL_CODE_INVALID_ES",
"detail": "Invalid Spanish postal code: '‹value›'. Must be 5 digits",
"instance": "/v1/<resource>",
"errors": [],
"success": false,
"error": {
"code": "POSTAL_CODE_INVALID_ES",
"message": "Invalid Spanish postal code: '‹value›'. Must be 5 digits",
"details": {}
},
"meta": {
"timestamp": "2026-05-21T10:00:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}The type URI is stable and always resolves to this page.
Message
Invalid Spanish postal code: '‹value›'. Must be 5 digits
Código postal español inválido: '‹value›'. Debe tener 5 dígitos
Codi postal espanyol invàlid: '‹value›'. Ha de tenir 5 dígits
Send the request with Accept-Language: <es|en|ca> to receive the message in your preferred language.
Placeholders like
‹value›are filled in at runtime with the actual values of your request.
Other errors in this category
AUTOMATIC_EMAIL_CONFIG_INVALID
For automatic sending, you must provide an email configuration or a client with email
BAD_REQUEST
The provided data is not valid.
BUSINESS_RULE_VIOLATION
The operation breaks a business rule.
CITY_EMPTY
City cannot be empty
CITY_MAX_LENGTH
City cannot exceed ‹value› characters