if not vendor:
response=request.make_json_response(data={'message': 'Invalid vendor'},
headers={"Content-Type": "application/json"},status=401)
return response
I want to send different status code for different conditions but i get only 200 for every condition
but the response is like
{ "jsonrpc": "2.0", "id": null, "result": ""} with status 200
so how to change response status in odoo 17