response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
return new ContainerInfo(region, container,
this.getContainerObjectCount(response), this.getContainerBytesUsed(response));
}
else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {
throw new ContainerNotFoundException(new Response(response));
}
else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
throw new AuthorizationException(new Response(response));
}
throw new GenericException(new Response(response));
}