Bind a custom error handler
void on(int errorCode, Callback callback) { _httpErrors[errorCode] = callback; }