public BankBillet getBankBillet(Integer id)
			throws CobreGratisBadRequestException,
			CobreGratisUnauthorizedException, CobreGratisForbiddenException,
			CobreGratisServiceUnavailableException,
			CobreGratisInternalServerErrorException,
			CobreGratisNotFoundException, CobreGratisTooManyRequestsException {
		ClientResponse response = getWebResource().path("bank_billets")
				.path(id.toString()).accept(MediaType.APPLICATION_JSON)
				.header("User-Agent", appId).get(ClientResponse.class);

		switch (response.getStatus()) {
		case 200:
			String json = response.getEntity(String.class);
			BankBillet billet = gson.fromJson(json, BankBillet.class);
			return billet;
		case 400:
			throw new CobreGratisBadRequestException();
		case 401:
			throw new CobreGratisUnauthorizedException();
		case 403:
			throw new CobreGratisForbiddenException();
		case 404:
			throw new CobreGratisNotFoundException();
		case 429:
			throw new CobreGratisTooManyRequestsException();
		case 503:
			throw new CobreGratisServiceUnavailableException();
		case 500:
			throw new CobreGratisInternalServerErrorException();
		default:
			break;
		}
		return null;
	}