CA API Management: Customizing Error Codes for the OAuth Toolkit
search cancel

CA API Management: Customizing Error Codes for the OAuth Toolkit

book

Article ID: 72471

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

How can custom error codes be created for use within the OTK?

Environment

All supported versions of the OTK

Resolution

 

1. Edit the policy #OTK Fail With Error Message 



2. Turn on comments and expand the 'custom' section. There is a sample branch you can copy and paste (All assertions must evaluate to true). Copy this branch and paste it inside the At least one branch 


3. Change the rule for the compare assertion to something in the range of 700-899. In my example I will use 700. 


4. Change the error message in the error.msg variable to the custom message. 

 



You can now utilize the 'OTK Fail with error message' assertion with the new error code

 

 

Attachments

1558694725607000072471_sktwi1f5rjvs16mpr.png get_app
1558694723925000072471_sktwi1f5rjvs16mpq.png get_app
1558694722119000072471_sktwi1f5rjvs16mpp.png get_app
1558694720336000072471_sktwi1f5rjvs16mpo.png get_app
1558694718532000072471_sktwi1f5rjvs16mpn.png get_app
1558694716660000072471_sktwi1f5rjvs16mpm.png get_app