type CodeType = {[code: string]: number}; const Code: CodeType = { /** * A network request was made using an unsupported URI scheme. */ UNSUPPORTED_SCHEME: 1000, /** * An HTTP network request returned an HTTP status that indicated a failure. */ BAD_HTTP_STATUS: 1001, /** * An HTTP network request failed with an error, but not from the server. */ HTTP_ERROR: 1002, /** * A network request timed out. */ TIMEOUT: 1003, /** * A network request was made with a malformed data URI. */ MALFORMED_DATA_URI: 1004, /** * The server responsded with 2xx response, but it couldn't be parsed */ BAD_SERVER_RESPONSE: 1005, /** * The server response had a valid structure but contained an error from the API */ MULTIREQUEST_API_ERROR: 1006, /** * The server response had a valid structure and valid API result, but it did not match the request */ API_RESPONSE_MISMATCH: 1007, /** * The server responded with an error */ ERROR: 2000, /** * The server responded with a block action */ BLOCK_ACTION: 2001, /** * The server responded with status import or pre convert */ MEDIA_STATUS_NOT_READY: 2002, /** * The server responded with a scheduled restricted code */ SCHEDULED_RESTRICTED: 2003, /** * The entry status is deleted */ DELETED_ENTRY: 2004, /** * The provider is missing mandatory parameter/s */ MISSING_MANDATORY_PARAMS: 3000, /** * The server responded with empty sources objects (for HLS, Dash and progressive) */ MISSING_PLAY_SOURCE: 3001, /** * The provider doesn't implement the called api */ METHOD_NOT_IMPLEMENTED: 3002 }; export {Code}; export type {CodeType};