add default html response
add seperate connection error handling