Updated to use $operation->getResponseStatusCodes()

- instead of building list of status codes manually