Update the default error handler middleware