Axinom Mosaic Libraries
    Preparing search index...
    WebhookErrors: {
        EmptyWebhookResponse: {
            code: "EMPTY_WEBHOOK_RESPONSE";
            message: "An attempt to generate a webhook response has failed. If payload is empty, at least one error must be provided.";
        };
        EmptyWebhookSecret: {
            code: "EMPTY_WEBHOOK_SECRET";
            message: "The webhook request validation has failed because the provided webhook secret is empty.";
        };
        InvalidWebhookResponse: {
            code: "INVALID_WEBHOOK_RESPONSE";
            message: "An attempt to generate a webhook response has failed. If payload is provided, errors cannot be provided. Use 'warnings' instead.";
        };
        InvalidWebhookSignature: {
            code: "INVALID_WEBHOOK_SIGNATURE";
            message: "The webhook request signature does not match the one calculated from the webhook body and the corresponding webhook secret.";
        };
        OutdatedWebhookRequest: {
            code: "OUTDATED_WEBHOOK_REQUEST";
            message: "The webhook message was generated too long ago (%s seconds) and should not be accepted anymore for security reasons.";
        };
        WebhookPayloadValidationFailed: {
            code: "WEBHOOK_PAYLOAD_VALIDATION_FAILED";
            message: "Validation of webhook payload has failed.";
        };
        WebhookRequestGenerationFailed: {
            code: "WEBHOOK_REQUEST_GENERATION_FAILED";
            message: "Generation of a webhook request has failed.";
        };
        WebhookSignatureGenerationFailed: {
            code: "WEBHOOK_SIGNATURE_GENERATION_FAILED";
            message: "Generation of a webhook signature has failed.";
        };
    } = ...

    An enum-like object containing webhook-related mosaic error codes and messages.

    Type Declaration

    • ReadonlyEmptyWebhookResponse: {
          code: "EMPTY_WEBHOOK_RESPONSE";
          message: "An attempt to generate a webhook response has failed. If payload is empty, at least one error must be provided.";
      }
    • ReadonlyEmptyWebhookSecret: {
          code: "EMPTY_WEBHOOK_SECRET";
          message: "The webhook request validation has failed because the provided webhook secret is empty.";
      }
    • ReadonlyInvalidWebhookResponse: {
          code: "INVALID_WEBHOOK_RESPONSE";
          message: "An attempt to generate a webhook response has failed. If payload is provided, errors cannot be provided. Use 'warnings' instead.";
      }
    • ReadonlyInvalidWebhookSignature: {
          code: "INVALID_WEBHOOK_SIGNATURE";
          message: "The webhook request signature does not match the one calculated from the webhook body and the corresponding webhook secret.";
      }
    • ReadonlyOutdatedWebhookRequest: {
          code: "OUTDATED_WEBHOOK_REQUEST";
          message: "The webhook message was generated too long ago (%s seconds) and should not be accepted anymore for security reasons.";
      }
    • ReadonlyWebhookPayloadValidationFailed: {
          code: "WEBHOOK_PAYLOAD_VALIDATION_FAILED";
          message: "Validation of webhook payload has failed.";
      }
    • ReadonlyWebhookRequestGenerationFailed: {
          code: "WEBHOOK_REQUEST_GENERATION_FAILED";
          message: "Generation of a webhook request has failed.";
      }
    • ReadonlyWebhookSignatureGenerationFailed: {
          code: "WEBHOOK_SIGNATURE_GENERATION_FAILED";
          message: "Generation of a webhook signature has failed.";
      }