<tt>Reason = atom() | binary() | nonempty_string()</tt></li><li><tt>Class = Reason</tt></li></ul></p>
</div><p><p>Encodes an Erlang term using server encoding (e.g., responses to
  a client). If the Term cannot be encoded, it fails with a <code>badarg</code> error.</p>
 
 
  <h4><a name="Server_Encoding">Server Encoding</a></h4>
 
  <p>The following table details how different Erlang terms are encoded in RESP:</p>
 
  <table border="1">
    <tr>
      <th width="20%">Erlang</th>
      <th>RESP</th>
    </tr