HttpResponse response = doGet(String.format("%s/namespaces", Constants.Gateway.API_VERSION));

return response.getStatusLine().getStatusCode();</BUG>
}
<BUG>private int getNamespace(String name) throws Exception {
</BUG>
Preconditions.checkArgument(name != null, "namespace name cannot be null");
<BUG>HttpResponse response = doGet(String.format("%s/namespaces/%s", Constants.Gateway.API_VERSION, name));

return response.getStatusLine().getStatusCode();</BUG>
}

private static final NamespaceMeta METADATA_EMPTY_DISPLAY_NAME = new NamespaceMeta.Builder().setName(NAME)
.setDisplayName("").setDescription(DESCRIPTION).build();
private static final NamespaceMeta METADATA_MISSING_DESCRIPTION = new NamespaceMeta.Builder().setName(NAME)
.setDisplayName(DISPLAY_NAME).build();
private static final String METADATA_INVALID_JSON = "invalid";
private HttpResponse createNamespace(NamespaceMeta metadata) throws Exception {
return createNamespace(GSON.toJson(metadata));
