remove unused TextAnnotation
ensure response code is an int