def rest_error(self):
    """Format this error into a response to a REST request.

    Returns:
      A string containing the reformatted error response.
    """
    error_json = self.__format_error('errors')
    return json.dumps(error_json, indent=1, sort_keys=True)
def rest_error ( self ) : error_json = self . __format_error ( 'errors' ) return json . dumps ( error_json , indent = 1 , sort_keys = True )
Format this error into a response to a REST request.

    Returns:
      A string containing the reformatted error response.