update mimes and error templates