add support for text/html responses

add text/html option as a response. use 'reason' as error and 'content' as description of error.