Green’s Dictionary of Slang

pants! excl.

[pants n. (1)]

nonsense! rubbish!

[US]Minneapolis Jrnl (MN) 6 Sept. 4/3: The enterprising New York Sun [...] pleads for a thesaurus of fine old English and American ‘cuss words’ [...] such beloved ejaculations as ‘Oh, pants!’ ‘I’ll be hornswoggled,’ ‘I’ll be dingswizzled!’.
[UK]Roger’s Profanisaurus in Viz 87 Dec. n.p.: pants 1. interj. Exclamation of dismay. 2. n. Rubbish; nonsense; arse. As in: ‘You’re talking pants!’.