Skip to content

Error Codes

Brandon Saldan edited this page Oct 12, 2024 · 1 revision

Error Codes

This page lists all the error codes used in our application, along with their names and descriptions.

Error Code Error Name Description
E001 FETCH_CURRENT_PLAYBACK_ERROR Error fetching current playback
E002 FETCH_ACCESS_TOKEN_ERROR Error fetching access token
E003 REFRESH_ACCESS_TOKEN_ERROR Error refreshing access token
E004 FETCH_LYRICS_ERROR Error fetching lyrics
E005 FETCH_USER_PLAYLISTS_ERROR Error fetching user playlists
E006 SYNC_VOLUME_ERROR Error syncing volume
E007 CHANGE_VOLUME_ERROR Error changing volume
E008 CHECK_LIKED_TRACKS_ERROR Error checking liked tracks
E009 CHECK_IF_TRACK_IS_LIKED_ERROR Error with checkIfTrackIsLiked
E010 TOGGLE_LIKED_TRACK_ERROR Error toggling liked track
E011 TOGGLE_LIKE_TRACK_ERROR Error with toggleLikeTrack
E012 TOGGLE_PLAY_PAUSE_ERROR Error toggling play/pause
E013 SKIP_TO_NEXT_TRACK_ERROR Error skipping to next track
E014 SKIP_TO_PREVIOUS_ERROR Error with skipToPrevious
E015 CHECK_PLAYLIST_CONTENTS_ERROR Error checking playlist contents
E016 ADD_TRACK_TO_PLAYLIST_ERROR Error adding track to playlist
E017 TOGGLE_SHUFFLE_ERROR Error toggling shuffle
E018 TOGGLE_REPEAT_ERROR Error toggling repeat
E019 FETCH_PLAYBACK_STATE_ERROR Error fetching playback state
E020 LOAD_MORE_TRACKS_ERROR Error loading more tracks
E021 NO_DEVICES_AVAILABLE No devices available for playback
E022 PLAY_ALBUM_ERROR Error playing album
E023 TRANSFER_PLAYBACK_ERROR Error transferring playback
E024 PLAY_TRACK_ERROR Error playing track
E025 PLAY_TRACK_REQUEST_ERROR Error with playTrack request
E026 FETCH_ALBUM_ERROR Failed to fetch album
E027 FETCH_PLAYBACK_STATE_ERROR Error fetching playback state
E028 PLAY_ARTIST_TOP_TRACKS_ERROR Error playing artist top tracks
E029 FETCH_ARTIST_ERROR Error fetching artist
E030 PLAY_PLAYLIST_ERROR Error playing playlist
E031 FETCH_PLAYLIST_ERROR Error fetching playlist
E032 FETCH_RECENTLY_PLAYED_ALBUMS_ERROR Error fetching recently played albums
E033 FETCH_TOP_ARTISTS_ERROR Error fetching top artists
E034 FETCH_USER_RADIO_ERROR Error fetching user radio
E035 FETCH_USER_PROFILE_ERROR Error fetching user profile

Using Error Codes

Within Nocturne, these error codes are used to identify specific error scenarios. When an error occurs, the corresponding error code is included in the error message, allowing for easier debugging and error handling.

For example, if you encounter an error message like "E001: 404", it means there was an error fetching the current playback (E001) and the server returned a 404 (Not Found) status.

Handling Errors

When you encounter an error, you can refer to this list to understand what operation was being attempted when the error occurred. This can help in troubleshooting and resolving issues more efficiently.

Remember to check the full error message for additional details about the error, such as HTTP status codes or specific error descriptions provided by the API.

Clone this wiki locally