How to set "Method Not Allowed" error when the method type is not correct.

Solution Verified - Updated -

Issue

When we are testing the API with incorrect HTTP method type we are getting the message "No mapping rule matched", however a message "Method Not Allowed" is expected.

Environment

Red Hat API Management
- SaaS
- On-premises 2.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content