I’m a little confused regarding the usage of the ‘status’ field in /kraken/channels/.
I completely understand that it is used for both the title of the stream as well as the error code returned if something goes wrong. But the reason I’m confused is, why is it being used for both?
Sure it’s handy using 1 field for 2 things, but in my opinion the status field should only return a code, similar to how HTTP will return code 200 if all is good, 404 if not found and 403 forbidden.
Currently the ‘status’ field is a mix of both:
Case: ‘User doesn’t exist?’ => send status 404 (int)
Case: ‘User does exist?’ => send their stream title (string)
Case: ‘User does exist? (no title)’ => returns null
Also, why the return inconsistency?
This is regarding api v3 and v5.
Although I doubt there will be a change in regards to v3 as it would break many other applications to a degree.