title: 405 status code not returning the response properly
body: <p>I have an http method fault that executes when an incorrect http method is sent in the request.</p>
  
  <p>when I set the status code as 405 ,the request returns a 502 bad gateway . </p>
  
  <p>my fault is : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;RaiseFault async="false" continueOnError="false" enabled="true" name="invalid-htttp-method-fault"&gt;
      &lt;DisplayName&gt;invalid htttp method fault&lt;/DisplayName&gt;
      &lt;FaultRules/&gt;
      &lt;Properties/&gt;
      &lt;FaultResponse&gt;
          &lt;Set&gt;
              &lt;Headers/&gt;
              &lt;Payload contentType="application/xml"&gt;
                  &lt;Fault&gt;
                      &lt;Code&gt;405&lt;/Code&gt;
                      &lt;Description&gt;Method Not Allowed&lt;/Description&gt;
  &lt;/Fault&gt;
        &lt;/Payload&gt;
              &lt;StatusCode&gt;405&lt;/StatusCode&gt;
              &lt;ReasonPhrase&gt;Method Not Allowed&lt;/ReasonPhrase&gt;
          &lt;/Set&gt;
      &lt;/FaultResponse&gt;
      &lt;IgnoreUnresolvedVariables&gt;true&lt;/IgnoreUnresolvedVariables&gt;
  &lt;/RaiseFault&gt;
  </code></pre>
  
  <p>If I change </p>
  
  <pre><code> &lt;StatusCode&gt;405&lt;/StatusCode&gt;
                  &lt;ReasonPhrase&gt;Method Not Allowed&lt;/ReasonPhrase&gt; 
  </code></pre>
  
  <p>to</p>
  
  <pre><code> &lt;StatusCode&gt;403&lt;/StatusCode&gt;
                  &lt;ReasonPhrase&gt;Method Not Allowed&lt;/ReasonPhrase&gt;
  </code></pre>
  
  <p>I can see the  response payload is returned perfectly .  when I use 405 the response returned is : </p>
  
  <pre><code>{"fault":{"faultstring":"Received 405 Response without Allow Header","detail":{"errorcode":"protocol.http.Response405WithoutAllowHeader"}}}
  </code></pre>