Refactoring: Exctract ResponseCodes class from Endpoint

I have nothing to say ...
Redundant `self` detected.