Fix http error not being sent to loader
Fixes #1