The below table describes the different error codes that can be returned when using endpoints related to webhooks.
Error Code | Error Message |
---|---|
TECHNICAL_ERROR | Technical error. |
UNABLE_TO_GET_RESULTS_FROM_DATABASE | Unable to get result from database. |
WEBHOOK_NOT_REGISTERED | The webhook referenced in the request isn't registered with Thredd. |
INVALID_WEBHOOK_ID | Invalid webhookId format. |
EMPTY_EVENTCODES | Event Codes cannot be empty. |
INVALID_EVENTCODE | Event Code should be valid. |
DUPLICATE_EVENTCODE | Event Code should be unique. |
SUBSCRIBED_EVENTCODE | Cannot subscribe to the same Event Code multiple times. |
DUPLICATE_EVENT_IN_EVENT_ARRAY | Please ensure there are no duplicate event codes in the event array. |
DUPLICATE_WEBHOOK | Found duplicate registration with same ProgramManagerCode/ProductId |
INVALID_NOTIFICATION_ID | Invalid notificationId. |
IS_REQUIRED_NOTIFICATION_ID | Notification Id is required. |
NOTIFICATION_NOTFOUND | No notifications found. |
NOTIFICATION_BULK_GET_LIMIT_EXCEEDED | Cannot request notifications for more than 100 numbers at once. |
INVALID_DATE | Please provide a valid date in the format yyyy-MM-dd. |
UNDELIVERED_NOTIFICATIONS_NOTFOUND | No undelivered notifications found. |
FUTURE_DATE | Future dates are not permitted. |
CURRENT_STATUS_IS_SAME_AS_ENTERED_STATUS | Current webhook status is same as the entered status. |
EXCEEDS_MAXIMUM_CUSTOM_HEADER_LIMIT | Please ensure that the custom header count does not exceed three. |
WEBHOOK_IS_NOT_ACTIVE_IN_STATUS | The webhook is not marked as active. |
PMCODE_NOT_VALID | The Program manager code is invalid. |
NOTIFICATION_RESEND_LIMIT_EXCEEDED | Cannot resend notifications for more than 25 numbers at once. |
PMCODE_REQUIRED | Program manager code is required. |
DUPLICATE_NOTIFICATION_ID | Duplicate occurrence of NotificationId is not permitted. |
WEBHOOK_DETAILS_NOTFOUND | No webhook details were found for the provided program manager code. |
INVALID_REQUEST_BODY | The programManagerCode field is required. |
EVENTCODE_NOTFOUND | Event code not found within Thredd system. |
EVENTCODE_NOT_SUBSCRIBED | Event code not subscribed yet. |
EVENTCODE_ASSOCIATED_WITH_WEBHOOK | Unable to delete the event code since it is associated with a webhook. |
IS_REQUIRED_FROM_DATE | From date is required. |