URL status + constants

Edited the logic fo changing status of URL based on response code and
added constants used throughout code