Add a matcher to match requests and apply security rules based on the servlet Dispatcher type (FORWARD,INCLUDE,REQUEST,ASYNC,ERROR). **Context** This will allow users to define what happens in the case of an ERROR dispatch. This may help in cases such as gh-9181.