Proper errors in html client