# Including a Location header in the response

**URL:** <https://www.ruby-forum.com/t/including-a-location-header-in-the-response/116548>\
**Category:** Rails\
**Created:** [October 7, 2007, 6:04am UTC](https://www.ruby-forum.com/t/including-a-location-header-in-the-response/116548 "2007-10-07T06:04:20Z")\
**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:** [October 7, 2007, 6:04am UTC](https://www.ruby-forum.com/t/including-a-location-header-in-the-response/116548/1 "2007-10-07T06:04:20Z")

</div>

How can I include a location header with this response?

format.json { render :json =\> @category.to\_json, :status  
=\> :created }
