add a class for SSH API responses to handle error management