in tchannel-core/src/main/java/com/uber/tchannel/errors/ErrorType.java [43:68]
public static ErrorType fromByte(byte value) {
switch (value) {
case (byte) 0x00:
return Invalid;
case (byte) 0x01:
return Timeout;
case (byte) 0x02:
return Cancelled;
case (byte) 0x03:
return Busy;
case (byte) 0x04:
return Declined;
case (byte) 0x05:
return UnexpectedError;
case (byte) 0x06:
return BadRequest;
case (byte) 0x07:
return NetworkError;
case (byte) 0x08:
return Unhealthy;
case (byte) 0xff:
return FatalProtocolError;
default:
return null;
}
}