Also note that HttpErrorHandler only has onClientError - from a public API perspective, none of the client error codes are handled specially. onOtherClientError is nothing more than a protected convenience method that users can override if they want to reuse some of the logic in DefaultHttpErrorHandler.
I'm not exactly sure what your use case is, if you want pac4j to provide some convenient default error handling, then I would recommend implementing your own class that extends DefaultHttpErrorHandler, overrides onClientError or onOtherClientError, and provides a protected onUnauthorized.