# Append HTTP Status Codes to XML

**URL:** <https://www.ruby-forum.com/t/append-http-status-codes-to-xml/128804>\
**Category:** Rails\
**Created:** [February 11, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/append-http-status-codes-to-xml/128804 "2008-02-11T18:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_1982](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Post date:** [February 11, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/append-http-status-codes-to-xml/128804/1 "2008-02-11T18:17:12Z")

</div>

Hi,

I am in the middle of putting a RESTful api together for a new app.

I was wondering if anyone has any suggestions or experience with adding  
a status code to all xml output?

So that a response that looks like  
  
\<about\_me\>this is a test descripton of me new line test\</about\_me\>

Will look like  
  
  
\<about\_me\>this is a test descripton of me new line  
test\</about\_me\>

Or maybe something similar to how twitter have implemented error codes,  
any suggestions?  
(  
[http://groups.google.com/group/twitter-development-talk/web/api-documentation](http://groups.google.com/group/twitter-development-talk/web/api-documentation)  
)

Thanks,  
Scott
