title: Custom response body for validate-jwt in Azure APIM
body: <p>I am validating JWT token from Azure API Manager. I am looking for options to change the response body when the validation fails. As per documentation <a href="https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies</a>.</p>
  
  <pre><code>&lt;validate-jwt
      header-name="name of http header containing the token (use query-parameter-name attribute if the token is passed in the URL)"
      failed-validation-httpcode="401"
      failed-validation-error-message="Invalid Token"
      token-value="expression returning JWT token as a string"
      require-expiration-time="true|false"
      require-scheme="scheme"
      require-signed-tokens="true|false"
      clock-skew="allowed clock skew in seconds"
      output-token-variable-name="name of a variable to receive a JWT object representing successfully validated token"&gt;
  </code></pre>
  
  <p>If i set </p>
  
  <pre><code>  failed-validation-httpcode="401" and  failed-validation-error-message="Invalid Token"
  </code></pre>
  
  <p>the response when the validation fails would be </p>
  
  <pre><code>{
      "statusCode": 401,
      "message": "Invalid Token"
  }
  </code></pre>
  
  <p>Now i need to change the "statusCode" in the body to "status" response to </p>
  
  <pre><code>{
      "status": 401,
      "message": "Invalid Token"
  }
  </code></pre>
  
  <p>Is it possible in Azure API Manager?</p>