Error Codes
Asleep.AsleepErrorCode
Error | Code | Description |
---|---|---|
ERR_UNKNOWN | 11000 | Unknown |
ERR_UNINITIALIZED | 11001 | Uninitialized SDK |
ERR_MIC_PERMISSION | 11002 | No mic permission |
ERR_AUDIO | 11003 | Android Audio Error |
ERR_INVALID_URL | 11004 | Invalid URL Format |
ERR_COMMON_UNAUTHORIZED | 11401 | Unauthorized |
ERR_COMMON_EXPIRED | 11403 | Plan is expired | Rate limit exceeded | Quota exceeded |
ERR_COMMON_NOT_FOUND | 11404 | user not exist |
ERR_NETWORK | 11500 | HTTP 500 error | Network error |
ERR_CREATE_UNAUTHORIZED | 22401 | Unauthorized | user_agent is empty |
ERR_CREATE_CONFLICT | 22409 | The previous sleep session is not closed yet. |
ERR_CREATE_VALIDATION | 22422 | Invalid session_start_time (YYYY-MM-DDTHH:mm:ssz), Invalid parameter |
ERR_CREATE_FAILED | 22500 | Failed to create a session |
ERR_UPLOAD_UNAUTHORIZED | 23401 | invalid customer uuid | user_agent is empty |
ERR_UPLOAD_FORBIDDEN | 23403 | The session is already closed. |
ERR_UPLOAD_NOT_FOUND | 23404 | The session does not exist. |
ERR_UPLOAD_BAD_REQUEST | 23400 | Invalid callback_url | audio format should be <sleep_session.sleep_sound_length> sec (16khz, 44.1khz, 48khz) (mp3, wav) under 10MB | cannot upload MELSPECTROGRAM file. only upload AUDIO file. |
ERR_UPLOAD_TOO_LARGE | 23413 | HTTP content length exceeded {size} bytes. |
ERR_UPLOAD_UNPROCESSABLE | 23422 | Invalid parameter | Invalid seq_num (seq_num starts from 0) |
ERR_CLOSE_UNAUTHORIZED | 24401 | Unauthorized | invalid customer uuid |
ERR_CLOSE_FORBIDDEN | 24403 | The session is already closed. |
ERR_CLOSE_BAD_REQUEST | 24400 | [WARNING] Invalid session end time. format(YYYY-MM-DDTHH:mm:ssz), must be less than session_start_time |
ERR_CLOSE_NOT_FOUND | 24404 | The session does not exist. |
ERR_CLOSE_FAILED | 24500 | Failed to close a session |
ERR_DELETE_UNAUTHORIZED | 25401 | Invalid customer uuid |
ERR_DELETE_USER_UNAUTHORIZED | 26401 | Invalid customer uuid |
ERR_ANALYSE_BAD_REQUEST | 31400 | The invalid timezone is provided. |
ERR_ANALYSE_NOT_FOUND | 31404 | Unable to find the sleep session of id {session_id} |
ERR_ANALYSE_UNPROCESSABLE | 31422 | The format of the sleep session id is not valid. |
ERR_REPORT_BAD_REQUEST | 32400 | The invalid timezone is provided. |
ERR_REPORT_NOT_FOUND | 32404 | Unable to find the sleep session of id {session_id} |
ERR_REPORT_UNPROCESSABLE | 32422 | The format of the sleep session id is not valid. |
ERR_REPORTS_BAD_REQUEST | 33400 | The invalid timezone is provided. |
ERR_REPORTS_UNAUTHORIZED | 33401 | The API key is not provided. |
Updated about 1 year ago