Document client-side error handling