This method is called from the
response object. It sets the HTTP response status code and reason.
In the event that you are developing an application that uses complex HTTP responses from OrientDB to determine how it handles the response content, you can use this method to set the HTTP response status code and reason.
var res = response.writeStatus(<code>, <reason>)
<code>Defines the response status code as an integer value, such as
<reason>Defines the response status text.
This method returns the response object.