feat: handle error 400 for invalid ctokens
This commit is contained in:
parent
f7fbf40721
commit
cc50862408
4 changed files with 64 additions and 9 deletions
|
|
@ -233,6 +233,20 @@ pub(crate) struct MusicContinuationDataInner {
|
|||
pub continuation: String,
|
||||
}
|
||||
|
||||
// ERROR
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub(crate) struct ErrorResponse {
|
||||
pub error: ErrorResponseContent,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub(crate) struct ErrorResponseContent {
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
/*
|
||||
#MAPPING
|
||||
*/
|
||||
|
|
|
|||
Reference in a new issue