corrected response type & string in log if rcode is valid