conn - A pointer to the connection structure, or NULL.
code - The numeric reason.
Consult Section 8 of RFC 3080
for an (incomplete) list.
language - The localization language used by the message
parameter.
fmt... - A textual message, expressed as a format string and arguments,
corresponding to the code parameter.
Returns:
The diagnostic structure that is allocated, or NULL.