def check_error_response(self, body, status):
status_code = int(status.split('<STR_LIT:U+0020>', <NUM_LIT:1>)[<NUM_LIT:0>])<EOL>if status_code >= <NUM_LIT>:<EOL><INDENT>raise errors.BackendError(body, status)<EOL><DEDENT>
Raise an exception if the response from the backend was an error.

        Args:
          body: A string containing the backend response body.
          status: A string containing the backend response status.

        Raises:
          BackendError if the response is an error.