@@ -120,7 +120,7 @@ func (c *Controller) ServeGetAlbum(r *http.Request) *spec.Response {
120
120
First (album , id .Value ).
121
121
Error
122
122
if errors .Is (err , gorm .ErrRecordNotFound ) {
123
- return spec .NewError (10 , "couldn't find an album with that id" )
123
+ return spec .NewError (70 , "couldn't find an album with that id" )
124
124
}
125
125
sub := spec .NewResponse ()
126
126
sub .Album = spec .NewAlbumByTags (album , album .Artists )
@@ -649,7 +649,7 @@ func (c *Controller) ServeGetSimilarSongs(r *http.Request) *spec.Response {
649
649
First (& track ).
650
650
Error
651
651
if errors .Is (err , gorm .ErrRecordNotFound ) {
652
- return spec .NewError (10 , "couldn't find a track with that id" )
652
+ return spec .NewError (70 , "couldn't find a track with that id" )
653
653
}
654
654
655
655
similarTracks , err := c .lastFMClient .TrackGetSimilarTracks (track .TagTrackArtist , track .TagTitle )
@@ -715,7 +715,7 @@ func (c *Controller) ServeGetSimilarSongsTwo(r *http.Request) *spec.Response {
715
715
First (& artist ).
716
716
Error
717
717
if errors .Is (err , gorm .ErrRecordNotFound ) {
718
- return spec .NewError (0 , "artist with id %q not found" , id )
718
+ return spec .NewError (70 , "artist with id %q not found" , id )
719
719
}
720
720
721
721
similarArtists , err := c .lastFMClient .ArtistGetSimilar (artist .Name )
0 commit comments