HttpCode class added
Constants: better definition and location
Cleanup and partial refactor
Tests update