Added userAgent to error object