Chandra, for invoking a wrong method, response code must be 405…
I am not sure when you meant, “API methods restricted at port level”.
API methods are not restricted at port, but the tokens that are issued will have scopes attached to it and it is allowed only for granted http methods. Do not try to wrap the response code or customize it. API gateway handles it.
#Integration-Server-and-ESB#webMethods-General#webMethods#webMethods-Architecture