Added header to RestRequest.pas and fixed non 200 reponses.