<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _raise_for_remote_status(url: str, data: dict) -> None: """Raise an error from the remote API if necessary."""

    if data.get('errorType') and data['errorType'] > 0:
        raise_remote_error(data['errorType'])

    if data.get('statusCode') and data['statusCode'] != 200:
        raise RequestError(
            'Error requesting data from {0}: {1} {2}'.format(
                url, data['statusCode'], data['message']))