Refactored HTTP Status Code variable
Added program replace content function
Fixed get_status call
Added replace content
Added resource exists
Added error handling