errors from server to html