Add reply constants lookup

Add lookup with hashmap (int or String -> enum)
Add test therefore