[FIX] Do not assume all exceptions with a code attribute to be HTTPExceptions