set status return code on response