added default api config and errors in default tpl