Update error handling; update selector; change delete response code to 200