Proper check made for optional success code in service responses

 * Proper check made for optional success code in service responses [(rctoris)](https://github.com/rctoris/)