Fix assert for 401 errors in http cmd