owntone-server icon indicating copy to clipboard operation
owntone-server copied to clipboard

[api] Inconsistency in return calls of the player endpoint

Open hacketiwack opened this issue 7 months ago • 1 comments

The /api/player endpoint provides several methods for navigating through the queue. However, when the queue is empty, these methods return inconsistent HTTP response codes.

Response codes for each method and a suggested response code:

Method Response Code Suggested Response Code
/api/player/next 204 204
/api/player/pause 500 204
/api/player/play 500 204
/api/player/previous 500 204
/api/player/seek 500 204
/api/player/stop 204 204

hacketiwack avatar May 10 '25 08:05 hacketiwack

Sounds fine to me!

ejurgensen avatar May 12 '25 08:05 ejurgensen