Use HTTP_* constants instead of magic numbers