Change == to .equals() to test if two String are identical.
Replace Response 204 by 200 to send a message too.
Execute the list command and retunr the output of the console.