Example usage for java.net HttpURLConnection HTTP_MULT_CHOICE

List of usage examples for java.net HttpURLConnection HTTP_MULT_CHOICE

Introduction

In this page you can find the example usage for java.net HttpURLConnection HTTP_MULT_CHOICE.

Prototype

int HTTP_MULT_CHOICE

To view the source code for java.net HttpURLConnection HTTP_MULT_CHOICE.

Click Source Link

Document

HTTP Status-Code 300: Multiple Choices.

Usage

From source file:com.scvngr.levelup.core.net.LevelUpResponseTest.java

/**
 * Tests {@link com.scvngr.levelup.core.net.LevelUpResponse#mapStatus(int, String)}.
 *//*from w  w w  .j  a v a2s.  c om*/
@SmallTest
public void testMapStatusHttp_errorCodeRedirection() {
    assertEquals(LevelUpStatus.ERROR_SERVER,
            LevelUpResponse.mapStatus(HttpURLConnection.HTTP_MULT_CHOICE, SERVER_LEVELUP_PLATFORM));
}