Use correct baseUri and add responsecode to template