Update error handling to allow requests to specify multiple status codes that are considered successful