- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In a REST persistent script custom endpoint, how to return HTTP status code other than 200?
lekanneer
Loves-to-Learn Lots
04-25-2018
01:22 PM
I'm writing my own custom endpoint which is needed to be persistent. So it is based on the PersistentServerConnectionApplication class because performance is important. But how to return other HTTP status codes other than 200? I have to check some authorization within my custom endpoint so I rather want to use a status code in the range of 4xx if something goes wrong.