issue #14 - minor refactoring of the response validation and error handl...

...ing to bring into line with the new error handling