Building for the Splunk Platform

In a REST persistent script custom endpoint, how to return HTTP status code other than 200?

Loves-to-Learn Lots

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.

0 Karma
Get Updates on the Splunk Community!

Devesh Logendran, Splunk, and the Singapore Cyber Conquest

At this year’s Splunk University, I had the privilege of chatting with Devesh Logendran, one of the winners in ...

There's No Place Like Chrome and the Splunk Platform

WATCH NOW!Malware. Risky Extensions. Data Exfiltration. End-users are increasingly reliant on browsers to ...

Customer Experience | Join the Customer Advisory Board!

Are you ready to take your Splunk journey to the next level? 🚀 We invite you to join our elite squad ...