add header, update response codes