Update connect-rest.js

now you can change the status code of the response while setting "statusCode" in your result