remove unused jsondump
add content-type=html when http error occured