Fixed error function not being fired by reversing method call order. Also fixed previously unknown bug where an error would be fired for a 304 response (and presumably others)