Extract response validity code to service.http/valid-response?