# ResponseError

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>
            <span class="ancestors"><a href="index.html">errors</a>~</span>ResponseError<span class="signature">(code, message)</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Represents an error message from the server.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="ResponseError"><span class="type-signature"></span>new ResponseError<span class="signature">(code, message)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>code</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"><p>Cassandra exception code as defined in <a href="../types/index.html#~responseErrorCodes">responseErrorCodes</a>.</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>message</code></td>
            

            <td class="type">
            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/errors.ts#L55" target="_blank" rel="noopener">errors.ts, line 55</a></p></div>




















    
    </div>
