Fix if server return error code only