wrap server-side error