Why does Camel REST return a 404 ('Not Found') instead of a 405 ('Not Allowed')?

Solution Verified - Updated -

Issue

If a REST resource does not implement a method, it should return a 405 ('Method Not Allowed'). Camel returns a 404 in this case ('Not Found'). Why is that?Example: A REST resource implements the GET method properly. If a user calls 'POST' instead, a 405 should result.

Environment

Red Hat JBoss Fuse 6.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