I have a Coldfusion REST API which I have built according to this link: https://medium.com/analytics-vidhya/building-an-awesome-restful-apis-with-coldfusion-86422f6b2b6f
The API is working wondefully. I am using GET and POST methods along with JWT auth.
We have a client requirement to send a status header back if the user logs in using an invalid JWT. EG: Error 403.
However, no matter what i have tried (using cfheader etc...), it returns back 200 or 500 (if the API is broken).
How do i assign my own status codes in my response?
thank you
1.4m articles
1.4m replys
5 comments
57.0k users