from
Retrieves an ErrorCode instance based on the provided integer code.
Returns the corresponding ErrorCode if found, otherwise defaults to CONNECTION_ERROR.
Return
The ErrorCode instance corresponding to the provided code, or CONNECTION_ERROR if not found.
Parameters
code
The integer code to match with an ErrorCode.