default to html5 if no query type specified or an invalid type is given (show html instead of internal server error)