Error Translations (PT / EN / ES)

This page centralizes translations for integration error codes used by Sendeasy.

Frontend parity

Use the same frontend model (backendErrors) to keep consistency between:

  • messages shown inside the web dashboard
  • messages displayed in external integrations (portals, ERPs, custom apps)

Recommended strategy:

  1. Backend returns error (stable code).
  2. Your client translates via locale catalog.
  3. Fallback to the error code when translation is missing.

Integration usage

  1. Treat error as a stable machine key.
  2. Display message when available.
  3. Optionally fallback to your local translation catalog.

Common codes

CodePortuguêsEnglishEspañol
ERR_NO_PERMISSIONVocê não tem permissão para acessar este recurso.You do not have permission to access this resource.No tienes permiso para acceder a este recurso.
ERR_SESSION_EXPIREDSessão expirada. Por favor, faça login.Session expired. Please log in.Sesión expirada. Por favor, inicia sesión.
ERR_API_TOKEN_NOT_PROVIDEDAPI token não informado.API token was not provided.No se proporcionó API token.
ERR_API_TOKEN_INVALIDAPI token inválido.Invalid API token.API token inválido.
ERR_API_TOKEN_INVALID_FORMATFormato de API token inválido.Invalid API token format.Formato de API token inválido.
ERR_API_TOKEN_AUTHENTICATION_FAILEDFalha na autenticação do API token.API token authentication failed.Fallo en la autenticación del API token.
ERR_SENDING_TEMPLATEErro ao enviar template.Error sending template.Error al enviar plantilla.
ERR_SENDING_MESSAGEErro ao enviar mensagem.Error sending message.Error al enviar mensaje.
ERR_SENDING_IMAGEErro ao enviar imagem.Error sending image.Error al enviar imagen.
ERR_SENDING_VIDEOErro ao enviar vídeo.Error sending video.Error al enviar video.
ERR_SENDING_AUDIOErro ao enviar áudio.Error sending audio.Error al enviar audio.
ERR_SENDING_DOCUMENTErro ao enviar documento.Error sending document.Error al enviar documento.
ERR_INVALID_WABA_RECIPIENTDestinatário WABA inválido.Invalid WABA recipient.Destinatario WABA inválido.
ERR_WAPP_NOT_CONNECTEDWhatsApp não está conectado.WhatsApp is not connected.WhatsApp no está conectado.
ERR_WIDGET_TOKEN_INVALIDToken do widget inválido.Invalid widget token.Token del widget inválido.
ERR_WIDGET_TOKEN_NOT_PROVIDEDToken do widget não informado.Widget token was not provided.No se proporcionó token del widget.
ERR_TRY_AGAIN_LATERPor favor, tente novamente mais tarde.Please try again later.Por favor, intenta de nuevo más tarde.
FILE_TOO_LARGEArquivo muito grande. O tamanho máximo é de 10MB.File too large. The maximum size is 10MB.Archivo demasiado grande. El tamaño máximo es de 10MB.

Client-side example

const fallbackTranslations = {
  ERR_NO_PERMISSION: {
    pt: 'Você não tem permissão para acessar este recurso.',
    en: 'You do not have permission to access this resource.',
    es: 'No tienes permiso para acceder a este recurso.',
  },
}

function resolveErrorMessage(errorCode, locale, backendMessage) {
  return backendMessage || fallbackTranslations?.[errorCode]?.[locale] || errorCode
}

Essa informação foi útil?