Wrong parameter for failure
Removed unimplemented code
Made api client look to response code