s="blockList">
<h4>NotAllowedException</h4>
<pre>public&nbsp;NotAllowedException(<a href="../../../jakarta/ws/rs/core/Response.html" title="class in jakarta.ws.rs.core">Response</a>&nbsp;response)</pre>
<div class="block">Construct a new method not allowed exception.
 <p>
 Note that this constructor does not validate the presence of HTTP <code>Allow</code> header. I.e. it is possible to use
 the constructor to create a client-side exception instance even for an invalid HTTP <code>405</code> response content