Added some clarity around error/rejections

Renamed hasError to isRejected and created isErrorCondition to do the
combination check of rejection and unsuccessful http status.