Fixed bugs with "OK" status & status_line display

Found & fixed a bug with the exit code in the "OK" state.
Also fixed display warning with `$res->status_line`.