fix: throw exception on 401 Authorization Required