Closed Eldemarkki closed 1 year ago
If a user doesn't have a current activity, but their current activity is requested at /users/USERNAME/activity/current, it will just return null with status 200.
/users/USERNAME/activity/current
null
$ curl 'https://api.testaustime.fi/users/Antti/activity/current' -H 'Authorization: Bearer REDACTED' null
(sorry Antti for exposing your inactivity)
I suggest we return some JSON (e.g. {"error":"User doesn't have an active session"}) with status code 404.
{"error":"User doesn't have an active session"}
Ok, will do :)
If a user doesn't have a current activity, but their current activity is requested at
/users/USERNAME/activity/current
, it will just returnnull
with status 200.(sorry Antti for exposing your inactivity)
I suggest we return some JSON (e.g.
{"error":"User doesn't have an active session"}
) with status code 404.