QuestionQ1Verified/IBM API Connect v10.0.3 Solution ImplementationCopy linkReport a problemAsk AstroTutorSave questionWhich statement is correct about using context variables in GatewayScript policies?Acontext.set('my.vars.amount', 100) generates { "my.vars": { "amount": 100 } }BAll API context variables are saved in an XML tree.Ccontext.message.statusCode = '200 Success' updates the status code of the message object.Dcontext.request.statusCode = 400 updates the status code of the request object.Show AnswerAnswerExplanationThe context.message.statusCode property sets the status code and reason phrase of the current message. IBM documents assignments such as context.message.statusCode = "501 Custom Error" to override the HTTP status returned by the API gateway.Learn moreIBM DataPower Gateway: APIs to manage messagesIBM DataPower Gateway: Context object for the API gatewayShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion