Add delegate for error in RESTFul