feat(subsonic): error code constants

This commit is contained in:
2026-04-19 17:37:49 +00:00
parent f916cde8c8
commit 4a447e081d
+17
View File
@@ -0,0 +1,17 @@
package subsonic
// Subsonic REST error codes per http://www.subsonic.org/pages/api.jsp §3.
// ErrTokenNotSupported (41) is reused for "this user has not enabled the
// requested auth mode" — the historical meaning ("LDAP users can't use
// token auth") is the closest analogue.
const (
ErrGeneric = 0
ErrMissingParameter = 10
ErrClientTooOld = 20
ErrServerTooOld = 30
ErrWrongCredentials = 40
ErrTokenNotSupported = 41
ErrNotAuthorized = 50
ErrTrialExpired = 60
ErrDataNotFound = 70
)