Returning forcefully 401 or 403 http status code

I am executing an external API (from xano endpoint) and based on the result (of the external API), I want to forcefully send the http response code of my (xano) API as 200 or 401 or 403.

The external API will always return http response code 200 (both in case of error or success).

I came across this post: https://community.xano.com/c/apis/returning-a-response-code and tried setting the STATUS but this is returning it as a JSON object with status  as 403 (and not HTTP Response Status Code)

{
    'STATUS': 403
}


How can the http response code be changed to 401 or 403?
Working with APIs
3 replies