feat(lidarr): typed HTTP client for v1 API (lookup, add, profiles, ping)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package lidarr
|
||||
|
||||
import "errors"
|
||||
|
||||
// Sentinel errors. Callers branch on these via errors.Is, not on
|
||||
// HTTP status codes — the client maps codes to errors.
|
||||
var (
|
||||
ErrUnreachable = errors.New("lidarr: unreachable")
|
||||
ErrAuthFailed = errors.New("lidarr: auth failed") // 401 / 403
|
||||
ErrLookupFailed = errors.New("lidarr: lookup failed") // 4xx other than 401/403
|
||||
ErrServerError = errors.New("lidarr: server error") // 5xx
|
||||
ErrInvalidPayload = errors.New("lidarr: invalid payload")
|
||||
)
|
||||
Reference in New Issue
Block a user