Revert "Add http_error callback"

This reverts commit 27fe9c8f01679a1a093f901860e5b2c95c9673c5.