use InvalidCredentialsError not InvalidParamsError

when method requires authentication