Use constant instead of 'magic number'.

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