How to return HTTP 501 from JAX-RS method

Solution Verified - Updated -

Issue

As part of the business method implementation, I want to throw HTTP 501 error code (NOT IMPLEMENTED) if the client try to invoke un-implemented method. Currently I am using resteasy 2.3.5.Final and the Status code 5.1 cannot be find in that version.

Environment

  • JBoss Enterprise Application Platform (EAP) 6

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