title: Override 204 status code message
body: <p>When we get a no content response as 204, it comes with a message "No Content" and displays a response</p>
  
  <pre><code>      Response : #&lt;Net::HTTPNoContent 204 No Content  readbody=true&gt;
  </code></pre>
  
  <p>while i want the response like :</p>
  
  <pre><code> &lt;response&gt;
     &lt;request_id&gt;4ccf18f0-e83d-012e-29f7-042b2b8686e6&lt;/request_id&gt;
     &lt;status_code&gt;204&lt;/status_code&gt;
     &lt;message&gt;No Offers were found&lt;/message&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>Can i override the default message of 204 error.The method which is being called to create the response.</p>
  
  <pre><code>def generate_success_response_without_data(format, request_id, message)
    status_code = 204
    format_type_method, options_hash, content_type = get_format_method(format)
    data = {
      "request_id" =&gt; request_id,
      "status_code" =&gt; status_code,
      "message" =&gt; message
    }
    data = generate_data_format(format, data)
    resp = [status_code, {"Content-Type" =&gt; content_type}, data.send(format_type_method, options_hash)]
    # Convert rack response to action controller response           
    generate_active_controller_response_format(resp)
    resp
  end
  </code></pre>
  
  <p>EDIT:
  As stated in <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html" rel="nofollow">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html</a></p>
  
  <p>The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.</p>
  
  <p>Can we hack somehow and show a message body</p>