Writes to an HttpResponse based on the incoming ResponseDescription.
Helper function that first runs the canHandle function followed by the handle function. Throws the error of the canHandle function if the data can't be handled, or returns the result of the handle function otherwise.
The data to handle.
The result of the handle function of the handler.
Writes to an HttpResponse based on the incoming ResponseDescription.