dont throw different exception for text/html