Use constant instead of 'magic number'.

This is a simple PR using constants form http package, instead of using "magic number".