Add status_for_json to provide a status message that is friendly to json encoding

Add status_for_json to provide a status message that is friendly to json encoding.