Use cleaner http error catch

One error type was inheriting from another one