collecting the return code instead of parsing error text