Splunk Dev

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

lekanneer
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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...