Handle HTTPErrors
Reduce fetch_eppic redundancy

also, some whitespace changes