return proper status code to reflect device status