question: @ ExceptionHandler ( HttpRequestMethodNotSupportedException . class ) @ ResponseBody @ ResponseStatus ( HttpStatus . METHOD_NOT_ALLOWED ) public String handleException ( final HttpRequestMethodNotSupportedException e ) { return convertErrorAsJson ( e . getMessage ( ) ) ; }
target:  Handles HttpRequestMethodNotSupportedException thrown by a REST API web service when request is received with unsupported HTTP method. <p/>