How to enforce certian headers in the request and throw faults if not found?

Not applicable

How to enforce certian headers in the request and throw faults if not found?

Solved Solved
0 2 404
2 ACCEPTED SOLUTIONS

Not applicable

This can be done through the use of an Extract Variables policy followed by a Fault rules policy. The Extract Variables policy can set the value of a header to a variable. The Fault rules policy can be setup to fire depending on the value of the variable.

View solution in original post

Not applicable

Variable "request.headers.names" provide list of headers in the request. This list need to be checked against the expected header name. In case, if a required header is missing; raise a fault.

There are many other related variables are available at http://apigee.com/docs/api-services/reference/vari...

View solution in original post

2 REPLIES 2

Not applicable

This can be done through the use of an Extract Variables policy followed by a Fault rules policy. The Extract Variables policy can set the value of a header to a variable. The Fault rules policy can be setup to fire depending on the value of the variable.

Not applicable

Variable "request.headers.names" provide list of headers in the request. This list need to be checked against the expected header name. In case, if a required header is missing; raise a fault.

There are many other related variables are available at http://apigee.com/docs/api-services/reference/vari...