Added support for custom HTTP headers and non-hardcoded error handler in API library