public final class Statuses
extends java.lang.Object
response status type
instances.| Modifier and Type | Method and Description |
|---|---|
static Response.StatusType |
from(int code)
Create a new
status type from the given code. |
static Response.StatusType |
from(int code,
java.lang.String reason)
Creates a new custom
status type initialized from the
status code and reason phrase. |
public static Response.StatusType from(int code)
status type from the given code. Status type if firstly
searched in Response.Status and if none is found, then a custom one is created and
initialized with status code (with empty reason phrase).code - Status code.public static Response.StatusType from(int code, java.lang.String reason)
status type initialized from the
status code and reason phrase.code - Status code.reason - Reason phrase.Copyright © 2016 Oracle Corporation. All Rights Reserved.