refactor: rename functions (#4655)returnClientError => throwClientExceptionreturnServerError => throwServerExceptionNew convenience function: throwRateLimitExceptionOld functions are kept but deprecated.