refactor status into response