use contant for success code insead of string
corrected call to set_status