<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)