Variable WebhookErrorsConst
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.";
};
} = ...
Type declaration
-
Readonly
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.";
}
-
Readonly
code: "EMPTY_WEBHOOK_RESPONSE"
-
Readonly
message: "An attempt to generate a webhook response has failed. If payload is empty, at least one error must be provided."
-
Readonly
EmptyWebhookSecret: {
code: "EMPTY_WEBHOOK_SECRET";
message: "The webhook request validation has failed because the provided webhook secret is empty.";
}
-
Readonly
code: "EMPTY_WEBHOOK_SECRET"
-
Readonly
message: "The webhook request validation has failed because the provided webhook secret is empty."
-
Readonly
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.";
}
-
Readonly
code: "INVALID_WEBHOOK_RESPONSE"
-
Readonly
message: "An attempt to generate a webhook response has failed. If payload is provided, errors cannot be provided. Use 'warnings' instead."
-
Readonly
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.";
}
-
Readonly
code: "INVALID_WEBHOOK_SIGNATURE"
-
Readonly
message: "The webhook request signature does not match the one calculated from the webhook body and the corresponding webhook secret."
-
Readonly
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.";
}
-
Readonly
code: "OUTDATED_WEBHOOK_REQUEST"
-
Readonly
message: "The webhook message was generated too long ago (%s seconds) and should not be accepted anymore for security reasons."
-
Readonly
WebhookPayloadValidationFailed: {
code: "WEBHOOK_PAYLOAD_VALIDATION_FAILED";
message: "Validation of webhook payload has failed.";
}
-
Readonly
code: "WEBHOOK_PAYLOAD_VALIDATION_FAILED"
-
Readonly
message: "Validation of webhook payload has failed."
-
Readonly
WebhookRequestGenerationFailed: {
code: "WEBHOOK_REQUEST_GENERATION_FAILED";
message: "Generation of a webhook request has failed.";
}
-
Readonly
code: "WEBHOOK_REQUEST_GENERATION_FAILED"
-
Readonly
message: "Generation of a webhook request has failed."
-
Readonly
WebhookSignatureGenerationFailed: {
code: "WEBHOOK_SIGNATURE_GENERATION_FAILED";
message: "Generation of a webhook signature has failed.";
}
-
Readonly
code: "WEBHOOK_SIGNATURE_GENERATION_FAILED"
-
Readonly
message: "Generation of a webhook signature has failed."
An enum-like object containing webhook-related mosaic error codes and messages.