# Changing the status code from 200 to 201

**URL:** <https://forum.serverless.com/t/changing-the-status-code-from-200-to-201/477>\
**Category:** Serverless Framework\
**Created:** [October 7, 2016, 3:20pm UTC](https://forum.serverless.com/t/changing-the-status-code-from-200-to-201/477 "2016-10-07T15:20:53Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [October 23, 2016, 10:46am UTC](https://forum.serverless.com/t/changing-the-status-code-from-200-to-201/477/12 "2016-10-23T10:46:46Z")

</div>

You should be able to call `JSON.parse()` on the body passed into your function and `JSON.stringify()` on the object you return in your body. That will handle converting between a string and Javascript object.

Having said that, I noticed the [1.0.3](http://forum.serverless.com/t/release-1-0-3-of-serverless/610) release notes mentioned [Custom Status code for non-proxy APIG integration](https://github.com/serverless/serverless/releases) ([#2014](https://github.com/serverless/serverless/pull/2014)). I haven’t had a chance to look at this properly but upgrading to 1.0.3 might give you the functionality you need.

---

_[View the full topic](https://forum.serverless.com/t/changing-the-status-code-from-200-to-201/477)._
