<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _handle_response(self, response):
 """Internal helper for handling API responses from the Coinbase server. Raises the appropriate exceptions when necessary; otherwise, returns the response. """

        if not str(response.status_code).startswith('2'):
            raise build_api_error(response)
        return response