[5.0] Cleaned abort method and imported HttpException

Thanks @GrahamCampbell  !
Ok!