case 420:
throw new EnhanceYourCalmException();
case 500:
throw new InternalServerErrorException();
case 502:
throw new BadGatewayException();
case 503:
throw new ServiceUnavailableException();
default:
throw new TwitterAPIException("unexpected response code: " + code);
}