created status_message method (currently only handles 200 and 404)