implemented getters and made public the validator for status codes in HTTPResponse