refactor: rename functions (#4655)

Wait 5 sec.

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