Class HttpJsonStatusCode (2.14.0)

public class HttpJsonStatusCode implements StatusCode

A failure code specific to an HTTP call.

Inheritance

Object > HttpJsonStatusCode

Implements

StatusCode

Static Methods

of(StatusCode.Code statusCode)

public static HttpJsonStatusCode of(StatusCode.Code statusCode)
Parameter
NameDescription
statusCodeStatusCode.Code
Returns
TypeDescription
HttpJsonStatusCode

of(Code rpcCode)

public static HttpJsonStatusCode of(Code rpcCode)
Parameter
NameDescription
rpcCodecom.google.rpc.Code
Returns
TypeDescription
HttpJsonStatusCode

of(int httpStatus)

public static HttpJsonStatusCode of(int httpStatus)

Creates a new instance with the given status code.

Parameter
NameDescription
httpStatusint
Returns
TypeDescription
HttpJsonStatusCode

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getCode()

public StatusCode.Code getCode()

Return the code enum value.

Returns
TypeDescription
StatusCode.Code

getTransportCode()

public Integer getTransportCode()

Returns the status code from the http call.

Returns
TypeDescription
Integer

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides