How to set Content-type as application/json;charset=UTF-8 in a failed authentication response at service package level
Hi - Can someone please help me with the way to set the content-type in response object which would be sent when authentication at REST service package level fails. currently I am setting Param.pyChallenge to @java("PRAuthentication.DEFAULT_FAIL_STREAM") and the response in the corresponding HTML rule is set as below :
Since authentication is done at service package level I am unable to send the response in json format to calling applications because Pega is setting default content type as text/html;charset=UTF-8. Any help in this regards would be really appreciated.
This might not be supported. What is the Content-type that a successful service call will send back? Please open an SR and GCS will delve deeper into the particular configuration/requirement you are looking for.