# Including status in response

**URL:** <https://www.ruby-forum.com/t/including-status-in-response/113005>\
**Category:** Rails\
**Created:** [August 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/including-status-in-response/113005 "2007-08-26T00:45:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggie5](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/7c8e57/32.png) [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Post date:** [August 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/including-status-in-response/113005/1 "2007-08-26T00:45:36Z")

</div>

I want my response to include either the json or xml text, but I also  
want it to include the http status 201. How can I do this?

if @manufacturer.save  
format.xml { render :xml =\> @manufacturer.to\_xml }  
format.json { render :json =\> @manufacturer.to\_json }  
end
