def rest_error(self):
error_json = self.__format_error('<STR_LIT>')<EOL>return json.dumps(error_json, indent=<NUM_LIT:1>, sort_keys=True)<EOL>
Format this error into a response to a REST request.

        Returns:
          A string containing the reformatted error response.