friendly error messages for ajax responses