Closed renatovieiradesouza closed 4 years ago
How to change status code in return? I have 3 mock and need only one, more with status code different.
Im Try:
var ob = {"status_code": 500}; JSON.stringify(ob);
In Ruby ok:
<%= {status_code: 500}.to_json %>
Solved question:
var status_code = 500; return JSON.stringify(status_code);
How to change status code in return? I have 3 mock and need only one, more with status code different.
Im Try:
var ob = {"status_code": 500}; JSON.stringify(ob);
In Ruby ok:
<%= {status_code: 500}.to_json %>