Hello everyone,
Using WebDev, I’ve to respond to a callback and the server accept only a code 204 No Content as a response. It seems that webdev answer 200 by default if there is nothing return.
How can I do that?
Many thanks
You should be able to do it directly with the servletResponse from the request, hinted at in the manual. You must return None
to prevent normal handling of a webdev dictionary response.
Something like this:
response = request['servletResponse']
response.status = 204
return None
3 Likes
Hi,
Thanks, that’s perfect.