handle Error objects on DeferredResponse#reject