Add ServerErrorHandler

I think rather than allowing `null` here we should use NullServerErrorHandler (after removing) or DefaultServerErrorHandler to simplify the code.