Closed lstone closed 7 years ago
please put a full minimal project somewhere to demonstrate the problem, the error is likely in some other setup around this so it's difficult to say what is wrong just based on this snippet (this code looks correct)
closing this due to inactivity. if this is still an issue, please reopen the ticket
Hi, I'm trying to integrate dynamic responses, but they always just return the ApiResponse in the body of the response.
The following handler response:
return new api.ApiResponse('Abort', {'Content-Type': 'application/json'}, 404);
Always returns this as the body w/ a 200 status code.
{"response":"Abort","headers":{"Content-Type":"application/json"},"code":404}
I would expect the response to set the status code, headers, and body. Any suggestions?