Added a constructor to HttpResponse that accepts a Throwable and transforms it into a processing error message in the response.