The error callback will now be triggered if the server returns a non-200 HTTP status code.