# ActionWebService - omit backtrace in error response

**URL:** <https://www.ruby-forum.com/t/actionwebservice-omit-backtrace-in-error-response/171502>\
**Category:** Rails\
**Created:** [July 3, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/actionwebservice-omit-backtrace-in-error-response/171502 "2009-07-03T16:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmfreitas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@jmfreitas](https://www.ruby-forum.com/u/jmfreitas)\
**Post date:** [July 3, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/actionwebservice-omit-backtrace-in-error-response/171502/1 "2009-07-03T16:23:34Z")

</div>

I’m using ActionWebService to expose a WebService of my application,  
and I would like to control the error responses sent back to the  
client.  
At very least, I would like to prevent the XML to include the  
backtrace.  
How can I do this?

---

<div class="post-metadata">

**Author:** ![jmfreitas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e79b87/32.png) [@jmfreitas](https://www.ruby-forum.com/u/jmfreitas)\
**Post date:** [July 3, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/actionwebservice-omit-backtrace-in-error-response/171502/2 "2009-07-03T16:38:47Z")

</div>

I wouldn’t have thought the backtrace would be outputted in production  
mode. Have you tried running in production mode? script/server -e  
production
