fix: error handling for invalid tokens
In the case of 401 answers, return code would be 0, but stderr would have the error message for the user.
In the case of 401 answers, return code would be 0, but stderr would have the error message for the user.