Class HttpJsonStatusCode (2.47.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
Name Description
statusCode StatusCode.Code
Returns
Type Description
HttpJsonStatusCode

of(Code rpcCode)

public static HttpJsonStatusCode of(Code rpcCode)
Parameter
Name Description
rpcCode com.google.rpc.Code
Returns
Type Description
HttpJsonStatusCode

of(int httpStatus)

public static HttpJsonStatusCode of(int httpStatus)

Creates a new instance with the given status code.

Parameter
Name Description
httpStatus int
Returns
Type Description
HttpJsonStatusCode

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getCode()

public StatusCode.Code getCode()

Return the code enum value.

Returns
Type Description
StatusCode.Code

getTransportCode()

public Integer getTransportCode()

Returns the status code from the http call.

Returns
Type Description
Integer

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides