Improve FPF error message callbacks with error object arguments and XML/HTML return values