Quickly mock http service with conditions