It was missing the integer cast. And I confused this exception code with the normal status code of a command return value.