add config option: *resource-handler-error-close-code*