I have a common REST service level written in Java modules that can be connected. If any of the desired operation is not supported by the module (GET / POST / PUT / DELETE of the resource), the module issues java. lang.UnsupportedOperationException or the equivalent type of exception that I have.
So, can I return the HTTP 501 error code to the client in this case?
source
share