479
480
def _process_error(self, data=None, builds=None, informational=None,
480
481
errors=None, reason="Validation"):
481
482
"""Set up the response and json data to return to the caller."""
483
484
self.request.response.setHeader('Content-type', 'application/json')
484
485
return_data = dict(builds=builds, errors=errors)