Sometimes, when a client makes a request to a Vimond service, it may encounter an error response due to various reasons. For example, the user might not be authenticated, or the request itself could be invalid.
Typically, the Vimond service returns an error response in the following format:
{
"errors": [
{
"title": "ASSET_NOT_FOUND",
"detail": "The asset requested does not exist",
"code": "2000"
}
]
}
While the HTTP status code provides an initial indication of the error, the error response provides more insight into the failure. The error response comprises three fields:
title: The name of the error
detail: A brief description of the encountered problem.
code: An internal error code unique to each specific issue, facilitating robust error handling.
The following error codes and descriptions help developers handle and troubleshoot issues more effectively when interacting with the Vimond API
Invalid locales provided via the Accept-Languages header
3002
MISSING_IP
The IP address associated with the request is missing or invalid
3003
MISSING_CONTENT_PACKAGE
The user lacks a valid subscription to access this asset (v1 of playback API only).
3003
MISSING_ENTITLEMENT
The user does not have valid access to watch this asset (this error is only for v2 of playback API, changed to better reflect the actual cause in the case of missing PPV entitlements as well)
3004
INVALID_GEO_LOCATION
The requested asset is not available in the user’s location.
3005
NO_STREAM_AVAILABLE
No stream available after applying request filters
3006
DEVICE_LIMIT_EXCEEDED
The user has exceeded the total number of allowed devices.
3007
INVALID_STREAM_PROFILE
The requested quality does not match defined qualities.
3008
UNSUFFICIENT_QUALITY_ENTITLEMENT
The asset has available streams, but the user lacks sufficient quality entitlements.
3009
FAILED_TO_FETCH_LOG_DATA_CONFIGURATION
Unable to retrieve log data configuration
3010
FAILED_TO_COMPUTE_LOG_DATA_CONFIGURATION
Failed to compute log data
3011
ANONYMOUS_IP_NOT_ALLOWED
The request IP address is associated with an anonymization service.
3012
BAD_STREAM
The stream is invalid or missing required configuration
3013
ASSET_NOT_STARTED
The asset playback has not started yet
3014
INVALID_DEVICE_INFORMATION
The provided device information was missing or not valid.
3015
INVALID_UNTIL_ENTITLEMENT_CLAIM
The ‘until’ claim in entitlement is malformed and does not follow the ISO8601 timestamp format.
These error codes provide valuable information to developers, enabling them to diagnose and handle errors effectively when integrating with Vimond services