API doesn't depend on client.py anymore
Add provision to set http status code using frappe.local.response.http_status_code