feat(subsonic): make error codes match Open Subsonic spec (#671)

There were a number of error codes being returned that did not match the
the code given by the spec. Primarily this was the use of error code 10
(missing input parameter) when 70 (data not found) was the more
appropriate return. Though several uses of 10 are actually 0 (internal
server or unspecified error).

Signed-off-by: Eric B Munson <eric@munsonfam.org>
This commit is contained in:
Eric Munson
2026-04-26 03:00:54 +02:00
committed by yaemiku
parent 13098660d2
commit 3c46097df3
3 changed files with 15 additions and 12 deletions

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ func (c *Controller) ServeScrobble(r *http.Request) *spec.Response {
return spec.NewError(0, "error updating stats: %v", err)
}
default:
return spec.NewError(10, "can't scrobble type %s", id.Type)
return spec.NewError(0, "can't scrobble type %s", id.Type)
}
if scrobbleTrack.Track == "" {