add response code generation