Closed ryanhinkel closed 9 years ago
I just noticed an api call that was redirected to the login with a next parameter. It was not allowed, of course, but I think it would be better for api calls to return a message.
This is the default behavior for things that require login. Doesn't make as much sense for an API call though. Probably should return a 401 instead.
The 401 is suitable.
I just noticed an api call that was redirected to the login with a next parameter. It was not allowed, of course, but I think it would be better for api calls to return a message.