{"id":13766857,"url":"https://github.com/maxkueng/chromium-net-errors","last_synced_at":"2025-09-21T01:31:58.775Z","repository":{"id":31039780,"uuid":"34598403","full_name":"maxkueng/chromium-net-errors","owner":"maxkueng","description":"Chromium network errors for Node.js","archived":false,"fork":false,"pushed_at":"2023-01-06T01:33:08.000Z","size":1705,"stargazers_count":21,"open_issues_count":15,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T04:28:46.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lmk123/blog","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxkueng.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-26T04:52:43.000Z","updated_at":"2023-02-27T04:13:40.000Z","dependencies_parsed_at":"2023-01-14T18:13:09.664Z","dependency_job_id":null,"html_url":"https://github.com/maxkueng/chromium-net-errors","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkueng%2Fchromium-net-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkueng%2Fchromium-net-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkueng%2Fchromium-net-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkueng%2Fchromium-net-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxkueng","download_url":"https://codeload.github.com/maxkueng/chromium-net-errors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233699712,"owners_count":18716261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T16:01:01.841Z","updated_at":"2025-09-21T01:31:53.419Z","avatar_url":"https://github.com/maxkueng.png","language":"C","readme":"Chromium Network Errors\n=======================\n\n[![Build Status](https://secure.travis-ci.org/maxkueng/chromium-net-errors.png?branch=master)](http://travis-ci.org/maxkueng/chromium-net-errors)\n[![codebeat badge](https://codebeat.co/badges/b022cc1d-3ec0-4f9d-bc7d-45168ec12e08)](https://codebeat.co/projects/github-com-maxkueng-chromium-net-errors-master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bdec0faf360447f39cdcc70d9d0750d3)](https://www.codacy.com/app/maxkueng/chromium-net-errors?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=maxkueng/chromium-net-errors\u0026amp;utm_campaign=Badge_Grade)\n[![Maintainability](https://api.codeclimate.com/v1/badges/df86c1d3fa5b248aaaa6/maintainability)](https://codeclimate.com/github/maxkueng/chromium-net-errors/maintainability)\n[![Coverage Status](https://coveralls.io/repos/maxkueng/chromium-net-errors/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/maxkueng/chromium-net-errors?branch=master)\n\n[![NPM](https://nodei.co/npm/chromium-net-errors.png)](https://nodei.co/npm/chromium-net-errors/)\n\nProvides Chromium network errors found in\n[net_error_list.h](https://source.chromium.org/chromium/chromium/src/+/master:net/base/net_error_list.h)\nas custom error classes that can be conveniently used in Node.js, Electron apps and browsers.\n\nThe errors correspond to the error codes that are provided in Electron's\n`did-fail-load` events of the [WebContents](https://github.com/electron/electron/blob/master/docs/api/web-contents.md#event-did-fail-load) class\nand the [webview tag](https://github.com/electron/electron/blob/master/docs/api/webview-tag.md#event-did-fail-load).\n\n[Features](#features) |\n[Installation](#installation) |\n[Electron Example](#example-use-in-electron) |\n[Usage](#usage) |\n[List of Errors](#list-of-errors) |\n[License](#license)\n\n## Features\n\n - No dependencies.\n - 100% test coverage.\n - ES6 build with `import` and `export`, and a CommonJS build. Your bundler can\n   use the ES6 modules if it supports the `\"module\"` or `\"jsnext:main\"`\n   directives in the package.json.\n - Daily cron-triggered checks for updates on net_error_list.h on \n   [Travis CI](https://travis-ci.org/maxkueng/chromium-net-errors)\n   to always get the most up-to-date list of errors.\n\n## Installation\n\n```sh\nnpm install chromium-net-errors --save\n```\n\n```js\nimport * as chromiumNetErrors from 'chromium-net-errors';\n// or\nconst chromiumNetErrors = require('chromium-net-errors');\n```\n\n## Example Use in Electron\n\n```js\nimport { app, BrowserWindow } from 'electron';\nimport * as chromiumNetErrors from 'chromium-net-errors';\n\napp.on('ready', () =\u003e {\n  const win = new BrowserWindow({\n    width: 800,\n    height: 600,\n  });\n\n  win.webContents.on('did-fail-load', (event) =\u003e {\n    try {\n      const Err = chromiumNetErrors.getErrorByCode(event.errorCode);\n      throw new Err();\n    } catch (err) {\n      if (err instanceof chromiumNetErrors.NameNotResolvedError) {\n        console.error(`The name '${event.validatedURL}' could not be resolved:\\n  ${err.message}`);\n      } else {\n        console.error(`Something went wrong while loading ${event.validatedURL}`);\n      }\n    }\n  });\n\n  win.loadURL('http://blablanotexist.com');\n});\n```\n\n## Usage\n\n```js\nimport * as chromiumNetErrors from 'chromium-net-errors';\n```\n\n### Create New Errors\n\n```js\nconst err = new chromiumNetErrors.ConnectionTimedOutError();\n\nconsole.log(err instanceof Error);\n// true\nconsole.log(err instanceof chromiumNetErrors.ChromiumNetError);\n// true\nconsole.log(err instanceof chromiumNetErrors.ConnectionTimedOutError);\n// true\n```\n\n```js\nfunction thrower() {\n  throw new chromiumNetErrors.ConnectionTimedOutError();\n}\n\ntry {\n  thrower();\n} catch (err) {\n  console.log(err instanceof Error);\n  // true\n  console.log(err instanceof chromiumNetErrors.ChromiumNetError);\n  // true\n  console.log(err instanceof chromiumNetErrors.ConnectionTimedOutError);\n  // true\n}\n```\n\n### Get Error by errorCode\n\nGet the class of an error by its `errorCode`.\n\n```js\nconst Err = chromiumNetErrors.getErrorByCode(-201);\nconst err = new Err();\n\nconsole.log(err instanceof chromiumNetErrors.CertDateInvalidError);\n// true\n\nconsole.log(err.isCertificateError());\n// true\n\nconsole.log(err.type); \n// 'certificate'\n\nconsole.log(err.message);\n// The server responded with a certificate that, by our clock, appears to\n// either not yet be valid or to have expired. This could mean:\n// \n// 1. An attacker is presenting an old certificate for which they have\n// managed to obtain the private key.\n// \n// 2. The server is misconfigured and is not presenting a valid cert.\n// \n// 3. Our clock is wrong.\n```\n\n### Get Error by errorDescription\n\nGet the class of an error by its `errorDescription`.\n\n```js\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_DATE_INVALID');\nconst err = new Err();\n\nconsole.log(err instanceof chromiumNetErrors.CertDateInvalidError);\n// true\n\nconsole.log(err.isCertificateError());\n// true\n\nconsole.log(err.type); \n// 'certificate'\n\nconsole.log(err.message);\n// The server responded with a certificate that, by our clock, appears to\n// either not yet be valid or to have expired. This could mean:\n// \n// 1. An attacker is presenting an old certificate for which they have\n// managed to obtain the private key.\n// \n// 2. The server is misconfigured and is not presenting a valid cert.\n// \n// 3. Our clock is wrong.\n```\n\n### Get All Errors\n\nGet an array of all possible errors.\n\n```js\nconsole.log(chromiumNetErrors.getErrors());\n\n// [ { name: 'IoPendingError',\n//     code: -1,\n//     description: 'IO_PENDING',\n//     type: 'system',\n//     message: 'An asynchronous IO operation is not yet complete.  This usually does not\\nindicate a fatal error.  Typically this error will be generated as a\\nnotification to wait for some external notification that the IO operation\\nfinally completed.' },\n//   { name: 'FailedError',\n//     code: -2,\n//     description: 'FAILED',\n//     type: 'system',\n//     message: 'A generic failure occurred.' },\n//   { name: 'AbortedError',\n//     code: -3,\n//     description: 'ABORTED',\n//     type: 'system',\n//     message: 'An operation was aborted (due to user action).' },\n//   { name: 'InvalidArgumentError',\n//     code: -4,\n//     description: 'INVALID_ARGUMENT',\n//     type: 'system',\n//     message: 'An argument to the function is incorrect.' },\n//   { name: 'InvalidHandleError',\n//     code: -5,\n//     description: 'INVALID_HANDLE',\n//     type: 'system',\n//     message: 'The handle or file descriptor is invalid.' },\n//   ...\n// ]\n```\n\n## List of Errors\n\n\u003c!--START_ERROR_LIST--\u003e\n### IoPendingError\n\n\u003e An asynchronous IO operation is not yet complete. This usually does not\n\u003e indicate a fatal error. Typically this error will be generated as a\n\u003e notification to wait for some external notification that the IO operation\n\u003e finally completed.\n\n - Name: `IoPendingError`\n - Code: `-1`\n - Description: `IO_PENDING`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.IoPendingError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-1);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('IO_PENDING');\nconst err = new Err();\n```\n\n### FailedError\n\n\u003e A generic failure occurred.\n\n - Name: `FailedError`\n - Code: `-2`\n - Description: `FAILED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-2);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FAILED');\nconst err = new Err();\n```\n\n### AbortedError\n\n\u003e An operation was aborted (due to user action).\n\n - Name: `AbortedError`\n - Code: `-3`\n - Description: `ABORTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.AbortedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-3);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ABORTED');\nconst err = new Err();\n```\n\n### InvalidArgumentError\n\n\u003e An argument to the function is incorrect.\n\n - Name: `InvalidArgumentError`\n - Code: `-4`\n - Description: `INVALID_ARGUMENT`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.InvalidArgumentError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-4);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_ARGUMENT');\nconst err = new Err();\n```\n\n### InvalidHandleError\n\n\u003e The handle or file descriptor is invalid.\n\n - Name: `InvalidHandleError`\n - Code: `-5`\n - Description: `INVALID_HANDLE`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.InvalidHandleError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-5);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_HANDLE');\nconst err = new Err();\n```\n\n### FileNotFoundError\n\n\u003e The file or directory cannot be found.\n\n - Name: `FileNotFoundError`\n - Code: `-6`\n - Description: `FILE_NOT_FOUND`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FileNotFoundError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-6);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FILE_NOT_FOUND');\nconst err = new Err();\n```\n\n### TimedOutError\n\n\u003e An operation timed out.\n\n - Name: `TimedOutError`\n - Code: `-7`\n - Description: `TIMED_OUT`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.TimedOutError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-7);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TIMED_OUT');\nconst err = new Err();\n```\n\n### FileTooBigError\n\n\u003e The file is too large.\n\n - Name: `FileTooBigError`\n - Code: `-8`\n - Description: `FILE_TOO_BIG`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FileTooBigError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-8);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FILE_TOO_BIG');\nconst err = new Err();\n```\n\n### UnexpectedError\n\n\u003e An unexpected error. This may be caused by a programming mistake or an\n\u003e invalid assumption.\n\n - Name: `UnexpectedError`\n - Code: `-9`\n - Description: `UNEXPECTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.UnexpectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-9);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNEXPECTED');\nconst err = new Err();\n```\n\n### AccessDeniedError\n\n\u003e Permission to access a resource, other than the network, was denied.\n\n - Name: `AccessDeniedError`\n - Code: `-10`\n - Description: `ACCESS_DENIED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.AccessDeniedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-10);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ACCESS_DENIED');\nconst err = new Err();\n```\n\n### NotImplementedError\n\n\u003e The operation failed because of unimplemented functionality.\n\n - Name: `NotImplementedError`\n - Code: `-11`\n - Description: `NOT_IMPLEMENTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.NotImplementedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-11);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NOT_IMPLEMENTED');\nconst err = new Err();\n```\n\n### InsufficientResourcesError\n\n\u003e There were not enough resources to complete the operation.\n\n - Name: `InsufficientResourcesError`\n - Code: `-12`\n - Description: `INSUFFICIENT_RESOURCES`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.InsufficientResourcesError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-12);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INSUFFICIENT_RESOURCES');\nconst err = new Err();\n```\n\n### OutOfMemoryError\n\n\u003e Memory allocation failed.\n\n - Name: `OutOfMemoryError`\n - Code: `-13`\n - Description: `OUT_OF_MEMORY`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.OutOfMemoryError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-13);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('OUT_OF_MEMORY');\nconst err = new Err();\n```\n\n### UploadFileChangedError\n\n\u003e The file upload failed because the file's modification time was different\n\u003e from the expectation.\n\n - Name: `UploadFileChangedError`\n - Code: `-14`\n - Description: `UPLOAD_FILE_CHANGED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.UploadFileChangedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-14);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UPLOAD_FILE_CHANGED');\nconst err = new Err();\n```\n\n### SocketNotConnectedError\n\n\u003e The socket is not connected.\n\n - Name: `SocketNotConnectedError`\n - Code: `-15`\n - Description: `SOCKET_NOT_CONNECTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.SocketNotConnectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-15);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKET_NOT_CONNECTED');\nconst err = new Err();\n```\n\n### FileExistsError\n\n\u003e The file already exists.\n\n - Name: `FileExistsError`\n - Code: `-16`\n - Description: `FILE_EXISTS`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FileExistsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-16);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FILE_EXISTS');\nconst err = new Err();\n```\n\n### FilePathTooLongError\n\n\u003e The path or file name is too long.\n\n - Name: `FilePathTooLongError`\n - Code: `-17`\n - Description: `FILE_PATH_TOO_LONG`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FilePathTooLongError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-17);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FILE_PATH_TOO_LONG');\nconst err = new Err();\n```\n\n### FileNoSpaceError\n\n\u003e Not enough room left on the disk.\n\n - Name: `FileNoSpaceError`\n - Code: `-18`\n - Description: `FILE_NO_SPACE`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FileNoSpaceError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-18);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FILE_NO_SPACE');\nconst err = new Err();\n```\n\n### FileVirusInfectedError\n\n\u003e The file has a virus.\n\n - Name: `FileVirusInfectedError`\n - Code: `-19`\n - Description: `FILE_VIRUS_INFECTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.FileVirusInfectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-19);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FILE_VIRUS_INFECTED');\nconst err = new Err();\n```\n\n### BlockedByClientError\n\n\u003e The client chose to block the request.\n\n - Name: `BlockedByClientError`\n - Code: `-20`\n - Description: `BLOCKED_BY_CLIENT`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.BlockedByClientError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-20);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('BLOCKED_BY_CLIENT');\nconst err = new Err();\n```\n\n### NetworkChangedError\n\n\u003e The network changed.\n\n - Name: `NetworkChangedError`\n - Code: `-21`\n - Description: `NETWORK_CHANGED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.NetworkChangedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-21);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NETWORK_CHANGED');\nconst err = new Err();\n```\n\n### BlockedByAdministratorError\n\n\u003e The request was blocked by the URL block list configured by the domain\n\u003e administrator.\n\n - Name: `BlockedByAdministratorError`\n - Code: `-22`\n - Description: `BLOCKED_BY_ADMINISTRATOR`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.BlockedByAdministratorError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-22);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('BLOCKED_BY_ADMINISTRATOR');\nconst err = new Err();\n```\n\n### SocketIsConnectedError\n\n\u003e The socket is already connected.\n\n - Name: `SocketIsConnectedError`\n - Code: `-23`\n - Description: `SOCKET_IS_CONNECTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.SocketIsConnectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-23);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKET_IS_CONNECTED');\nconst err = new Err();\n```\n\n### BlockedEnrollmentCheckPendingError\n\n\u003e The request was blocked because the forced reenrollment check is still\n\u003e pending. This error can only occur on ChromeOS.\n\u003e The error can be emitted by code in chrome/browser/policy/policy_helpers.cc.\n\n - Name: `BlockedEnrollmentCheckPendingError`\n - Code: `-24`\n - Description: `BLOCKED_ENROLLMENT_CHECK_PENDING`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.BlockedEnrollmentCheckPendingError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-24);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('BLOCKED_ENROLLMENT_CHECK_PENDING');\nconst err = new Err();\n```\n\n### UploadStreamRewindNotSupportedError\n\n\u003e The upload failed because the upload stream needed to be re-read, due to a\n\u003e retry or a redirect, but the upload stream doesn't support that operation.\n\n - Name: `UploadStreamRewindNotSupportedError`\n - Code: `-25`\n - Description: `UPLOAD_STREAM_REWIND_NOT_SUPPORTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.UploadStreamRewindNotSupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-25);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UPLOAD_STREAM_REWIND_NOT_SUPPORTED');\nconst err = new Err();\n```\n\n### ContextShutDownError\n\n\u003e The request failed because the URLRequestContext is shutting down, or has\n\u003e been shut down.\n\n - Name: `ContextShutDownError`\n - Code: `-26`\n - Description: `CONTEXT_SHUT_DOWN`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.ContextShutDownError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-26);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONTEXT_SHUT_DOWN');\nconst err = new Err();\n```\n\n### BlockedByResponseError\n\n\u003e The request failed because the response was delivered along with requirements\n\u003e which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor\n\u003e checks and 'Cross-Origin-Resource-Policy', for instance).\n\n - Name: `BlockedByResponseError`\n - Code: `-27`\n - Description: `BLOCKED_BY_RESPONSE`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.BlockedByResponseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-27);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('BLOCKED_BY_RESPONSE');\nconst err = new Err();\n```\n\n### CleartextNotPermittedError\n\n\u003e The request was blocked by system policy disallowing some or all cleartext\n\u003e requests. Used for NetworkSecurityPolicy on Android.\n\n - Name: `CleartextNotPermittedError`\n - Code: `-29`\n - Description: `CLEARTEXT_NOT_PERMITTED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.CleartextNotPermittedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-29);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CLEARTEXT_NOT_PERMITTED');\nconst err = new Err();\n```\n\n### BlockedByCspError\n\n\u003e The request was blocked by a Content Security Policy\n\n - Name: `BlockedByCspError`\n - Code: `-30`\n - Description: `BLOCKED_BY_CSP`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.BlockedByCspError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-30);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('BLOCKED_BY_CSP');\nconst err = new Err();\n```\n\n### H2OrQuicRequiredError\n\n\u003e The request was blocked because of no H/2 or QUIC session.\n\n - Name: `H2OrQuicRequiredError`\n - Code: `-31`\n - Description: `H2_OR_QUIC_REQUIRED`\n - Type: system\n\n```js\nconst err = new chromiumNetErrors.H2OrQuicRequiredError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-31);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('H2_OR_QUIC_REQUIRED');\nconst err = new Err();\n```\n\n### ConnectionClosedError\n\n\u003e A connection was closed (corresponding to a TCP FIN).\n\n - Name: `ConnectionClosedError`\n - Code: `-100`\n - Description: `CONNECTION_CLOSED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ConnectionClosedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-100);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONNECTION_CLOSED');\nconst err = new Err();\n```\n\n### ConnectionResetError\n\n\u003e A connection was reset (corresponding to a TCP RST).\n\n - Name: `ConnectionResetError`\n - Code: `-101`\n - Description: `CONNECTION_RESET`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ConnectionResetError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-101);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONNECTION_RESET');\nconst err = new Err();\n```\n\n### ConnectionRefusedError\n\n\u003e A connection attempt was refused.\n\n - Name: `ConnectionRefusedError`\n - Code: `-102`\n - Description: `CONNECTION_REFUSED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ConnectionRefusedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-102);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONNECTION_REFUSED');\nconst err = new Err();\n```\n\n### ConnectionAbortedError\n\n\u003e A connection timed out as a result of not receiving an ACK for data sent.\n\u003e This can include a FIN packet that did not get ACK'd.\n\n - Name: `ConnectionAbortedError`\n - Code: `-103`\n - Description: `CONNECTION_ABORTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ConnectionAbortedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-103);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONNECTION_ABORTED');\nconst err = new Err();\n```\n\n### ConnectionFailedError\n\n\u003e A connection attempt failed.\n\n - Name: `ConnectionFailedError`\n - Code: `-104`\n - Description: `CONNECTION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ConnectionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-104);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONNECTION_FAILED');\nconst err = new Err();\n```\n\n### NameNotResolvedError\n\n\u003e The host name could not be resolved.\n\n - Name: `NameNotResolvedError`\n - Code: `-105`\n - Description: `NAME_NOT_RESOLVED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.NameNotResolvedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-105);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NAME_NOT_RESOLVED');\nconst err = new Err();\n```\n\n### InternetDisconnectedError\n\n\u003e The Internet connection has been lost.\n\n - Name: `InternetDisconnectedError`\n - Code: `-106`\n - Description: `INTERNET_DISCONNECTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.InternetDisconnectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-106);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INTERNET_DISCONNECTED');\nconst err = new Err();\n```\n\n### SslProtocolError\n\n\u003e An SSL protocol error occurred.\n\n - Name: `SslProtocolError`\n - Code: `-107`\n - Description: `SSL_PROTOCOL_ERROR`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslProtocolError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-107);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_PROTOCOL_ERROR');\nconst err = new Err();\n```\n\n### AddressInvalidError\n\n\u003e The IP address or port number is invalid (e.g., cannot connect to the IP\n\u003e address 0 or the port 0).\n\n - Name: `AddressInvalidError`\n - Code: `-108`\n - Description: `ADDRESS_INVALID`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.AddressInvalidError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-108);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ADDRESS_INVALID');\nconst err = new Err();\n```\n\n### AddressUnreachableError\n\n\u003e The IP address is unreachable. This usually means that there is no route to\n\u003e the specified host or network.\n\n - Name: `AddressUnreachableError`\n - Code: `-109`\n - Description: `ADDRESS_UNREACHABLE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.AddressUnreachableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-109);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ADDRESS_UNREACHABLE');\nconst err = new Err();\n```\n\n### SslClientAuthCertNeededError\n\n\u003e The server requested a client certificate for SSL client authentication.\n\n - Name: `SslClientAuthCertNeededError`\n - Code: `-110`\n - Description: `SSL_CLIENT_AUTH_CERT_NEEDED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslClientAuthCertNeededError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-110);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_CLIENT_AUTH_CERT_NEEDED');\nconst err = new Err();\n```\n\n### TunnelConnectionFailedError\n\n\u003e A tunnel connection through the proxy could not be established.\n\n - Name: `TunnelConnectionFailedError`\n - Code: `-111`\n - Description: `TUNNEL_CONNECTION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.TunnelConnectionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-111);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TUNNEL_CONNECTION_FAILED');\nconst err = new Err();\n```\n\n### NoSslVersionsEnabledError\n\n\u003e No SSL protocol versions are enabled.\n\n - Name: `NoSslVersionsEnabledError`\n - Code: `-112`\n - Description: `NO_SSL_VERSIONS_ENABLED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.NoSslVersionsEnabledError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-112);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NO_SSL_VERSIONS_ENABLED');\nconst err = new Err();\n```\n\n### SslVersionOrCipherMismatchError\n\n\u003e The client and server don't support a common SSL protocol version or\n\u003e cipher suite.\n\n - Name: `SslVersionOrCipherMismatchError`\n - Code: `-113`\n - Description: `SSL_VERSION_OR_CIPHER_MISMATCH`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslVersionOrCipherMismatchError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-113);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_VERSION_OR_CIPHER_MISMATCH');\nconst err = new Err();\n```\n\n### SslRenegotiationRequestedError\n\n\u003e The server requested a renegotiation (rehandshake).\n\n - Name: `SslRenegotiationRequestedError`\n - Code: `-114`\n - Description: `SSL_RENEGOTIATION_REQUESTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslRenegotiationRequestedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-114);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_RENEGOTIATION_REQUESTED');\nconst err = new Err();\n```\n\n### ProxyAuthUnsupportedError\n\n\u003e The proxy requested authentication (for tunnel establishment) with an\n\u003e unsupported method.\n\n - Name: `ProxyAuthUnsupportedError`\n - Code: `-115`\n - Description: `PROXY_AUTH_UNSUPPORTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ProxyAuthUnsupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-115);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PROXY_AUTH_UNSUPPORTED');\nconst err = new Err();\n```\n\n### CertErrorInSslRenegotiationError\n\n\u003e During SSL renegotiation (rehandshake), the server sent a certificate with\n\u003e an error.\n\u003e \n\u003e Note: this error is not in the -2xx range so that it won't be handled as a\n\u003e certificate error.\n\n - Name: `CertErrorInSslRenegotiationError`\n - Code: `-116`\n - Description: `CERT_ERROR_IN_SSL_RENEGOTIATION`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.CertErrorInSslRenegotiationError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-116);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_ERROR_IN_SSL_RENEGOTIATION');\nconst err = new Err();\n```\n\n### BadSslClientAuthCertError\n\n\u003e The SSL handshake failed because of a bad or missing client certificate.\n\n - Name: `BadSslClientAuthCertError`\n - Code: `-117`\n - Description: `BAD_SSL_CLIENT_AUTH_CERT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.BadSslClientAuthCertError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-117);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('BAD_SSL_CLIENT_AUTH_CERT');\nconst err = new Err();\n```\n\n### ConnectionTimedOutError\n\n\u003e A connection attempt timed out.\n\n - Name: `ConnectionTimedOutError`\n - Code: `-118`\n - Description: `CONNECTION_TIMED_OUT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ConnectionTimedOutError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-118);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONNECTION_TIMED_OUT');\nconst err = new Err();\n```\n\n### HostResolverQueueTooLargeError\n\n\u003e There are too many pending DNS resolves, so a request in the queue was\n\u003e aborted.\n\n - Name: `HostResolverQueueTooLargeError`\n - Code: `-119`\n - Description: `HOST_RESOLVER_QUEUE_TOO_LARGE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.HostResolverQueueTooLargeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-119);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HOST_RESOLVER_QUEUE_TOO_LARGE');\nconst err = new Err();\n```\n\n### SocksConnectionFailedError\n\n\u003e Failed establishing a connection to the SOCKS proxy server for a target host.\n\n - Name: `SocksConnectionFailedError`\n - Code: `-120`\n - Description: `SOCKS_CONNECTION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SocksConnectionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-120);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKS_CONNECTION_FAILED');\nconst err = new Err();\n```\n\n### SocksConnectionHostUnreachableError\n\n\u003e The SOCKS proxy server failed establishing connection to the target host\n\u003e because that host is unreachable.\n\n - Name: `SocksConnectionHostUnreachableError`\n - Code: `-121`\n - Description: `SOCKS_CONNECTION_HOST_UNREACHABLE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SocksConnectionHostUnreachableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-121);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKS_CONNECTION_HOST_UNREACHABLE');\nconst err = new Err();\n```\n\n### AlpnNegotiationFailedError\n\n\u003e The request to negotiate an alternate protocol failed.\n\n - Name: `AlpnNegotiationFailedError`\n - Code: `-122`\n - Description: `ALPN_NEGOTIATION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.AlpnNegotiationFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-122);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ALPN_NEGOTIATION_FAILED');\nconst err = new Err();\n```\n\n### SslNoRenegotiationError\n\n\u003e The peer sent an SSL no_renegotiation alert message.\n\n - Name: `SslNoRenegotiationError`\n - Code: `-123`\n - Description: `SSL_NO_RENEGOTIATION`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslNoRenegotiationError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-123);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_NO_RENEGOTIATION');\nconst err = new Err();\n```\n\n### WinsockUnexpectedWrittenBytesError\n\n\u003e Winsock sometimes reports more data written than passed. This is probably\n\u003e due to a broken LSP.\n\n - Name: `WinsockUnexpectedWrittenBytesError`\n - Code: `-124`\n - Description: `WINSOCK_UNEXPECTED_WRITTEN_BYTES`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.WinsockUnexpectedWrittenBytesError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-124);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('WINSOCK_UNEXPECTED_WRITTEN_BYTES');\nconst err = new Err();\n```\n\n### SslDecompressionFailureAlertError\n\n\u003e An SSL peer sent us a fatal decompression_failure alert. This typically\n\u003e occurs when a peer selects DEFLATE compression in the mistaken belief that\n\u003e it supports it.\n\n - Name: `SslDecompressionFailureAlertError`\n - Code: `-125`\n - Description: `SSL_DECOMPRESSION_FAILURE_ALERT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslDecompressionFailureAlertError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-125);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_DECOMPRESSION_FAILURE_ALERT');\nconst err = new Err();\n```\n\n### SslBadRecordMacAlertError\n\n\u003e An SSL peer sent us a fatal bad_record_mac alert. This has been observed\n\u003e from servers with buggy DEFLATE support.\n\n - Name: `SslBadRecordMacAlertError`\n - Code: `-126`\n - Description: `SSL_BAD_RECORD_MAC_ALERT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslBadRecordMacAlertError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-126);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_BAD_RECORD_MAC_ALERT');\nconst err = new Err();\n```\n\n### ProxyAuthRequestedError\n\n\u003e The proxy requested authentication (for tunnel establishment).\n\n - Name: `ProxyAuthRequestedError`\n - Code: `-127`\n - Description: `PROXY_AUTH_REQUESTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ProxyAuthRequestedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-127);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PROXY_AUTH_REQUESTED');\nconst err = new Err();\n```\n\n### ProxyConnectionFailedError\n\n\u003e Could not create a connection to the proxy server. An error occurred\n\u003e either in resolving its name, or in connecting a socket to it.\n\u003e Note that this does NOT include failures during the actual \"CONNECT\" method\n\u003e of an HTTP proxy.\n\n - Name: `ProxyConnectionFailedError`\n - Code: `-130`\n - Description: `PROXY_CONNECTION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ProxyConnectionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-130);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PROXY_CONNECTION_FAILED');\nconst err = new Err();\n```\n\n### MandatoryProxyConfigurationFailedError\n\n\u003e A mandatory proxy configuration could not be used. Currently this means\n\u003e that a mandatory PAC script could not be fetched, parsed or executed.\n\n - Name: `MandatoryProxyConfigurationFailedError`\n - Code: `-131`\n - Description: `MANDATORY_PROXY_CONFIGURATION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.MandatoryProxyConfigurationFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-131);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('MANDATORY_PROXY_CONFIGURATION_FAILED');\nconst err = new Err();\n```\n\n### PreconnectMaxSocketLimitError\n\n\u003e We've hit the max socket limit for the socket pool while preconnecting. We\n\u003e don't bother trying to preconnect more sockets.\n\n - Name: `PreconnectMaxSocketLimitError`\n - Code: `-133`\n - Description: `PRECONNECT_MAX_SOCKET_LIMIT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.PreconnectMaxSocketLimitError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-133);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PRECONNECT_MAX_SOCKET_LIMIT');\nconst err = new Err();\n```\n\n### SslClientAuthPrivateKeyAccessDeniedError\n\n\u003e The permission to use the SSL client certificate's private key was denied.\n\n - Name: `SslClientAuthPrivateKeyAccessDeniedError`\n - Code: `-134`\n - Description: `SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslClientAuthPrivateKeyAccessDeniedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-134);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED');\nconst err = new Err();\n```\n\n### SslClientAuthCertNoPrivateKeyError\n\n\u003e The SSL client certificate has no private key.\n\n - Name: `SslClientAuthCertNoPrivateKeyError`\n - Code: `-135`\n - Description: `SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslClientAuthCertNoPrivateKeyError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-135);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY');\nconst err = new Err();\n```\n\n### ProxyCertificateInvalidError\n\n\u003e The certificate presented by the HTTPS Proxy was invalid.\n\n - Name: `ProxyCertificateInvalidError`\n - Code: `-136`\n - Description: `PROXY_CERTIFICATE_INVALID`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ProxyCertificateInvalidError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-136);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PROXY_CERTIFICATE_INVALID');\nconst err = new Err();\n```\n\n### NameResolutionFailedError\n\n\u003e An error occurred when trying to do a name resolution (DNS).\n\n - Name: `NameResolutionFailedError`\n - Code: `-137`\n - Description: `NAME_RESOLUTION_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.NameResolutionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-137);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NAME_RESOLUTION_FAILED');\nconst err = new Err();\n```\n\n### NetworkAccessDeniedError\n\n\u003e Permission to access the network was denied. This is used to distinguish\n\u003e errors that were most likely caused by a firewall from other access denied\n\u003e errors. See also ERR_ACCESS_DENIED.\n\n - Name: `NetworkAccessDeniedError`\n - Code: `-138`\n - Description: `NETWORK_ACCESS_DENIED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.NetworkAccessDeniedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-138);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NETWORK_ACCESS_DENIED');\nconst err = new Err();\n```\n\n### TemporarilyThrottledError\n\n\u003e The request throttler module cancelled this request to avoid DDOS.\n\n - Name: `TemporarilyThrottledError`\n - Code: `-139`\n - Description: `TEMPORARILY_THROTTLED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.TemporarilyThrottledError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-139);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TEMPORARILY_THROTTLED');\nconst err = new Err();\n```\n\n### HttpsProxyTunnelResponseRedirectError\n\n\u003e A request to create an SSL tunnel connection through the HTTPS proxy\n\u003e received a 302 (temporary redirect) response. The response body might\n\u003e include a description of why the request failed.\n\u003e \n\u003e TODO(https://crbug.com/928551): This is deprecated and should not be used by\n\u003e new code.\n\n - Name: `HttpsProxyTunnelResponseRedirectError`\n - Code: `-140`\n - Description: `HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.HttpsProxyTunnelResponseRedirectError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-140);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT');\nconst err = new Err();\n```\n\n### SslClientAuthSignatureFailedError\n\n\u003e We were unable to sign the CertificateVerify data of an SSL client auth\n\u003e handshake with the client certificate's private key.\n\u003e \n\u003e Possible causes for this include the user implicitly or explicitly\n\u003e denying access to the private key, the private key may not be valid for\n\u003e signing, the key may be relying on a cached handle which is no longer\n\u003e valid, or the CSP won't allow arbitrary data to be signed.\n\n - Name: `SslClientAuthSignatureFailedError`\n - Code: `-141`\n - Description: `SSL_CLIENT_AUTH_SIGNATURE_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslClientAuthSignatureFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-141);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_CLIENT_AUTH_SIGNATURE_FAILED');\nconst err = new Err();\n```\n\n### MsgTooBigError\n\n\u003e The message was too large for the transport. (for example a UDP message\n\u003e which exceeds size threshold).\n\n - Name: `MsgTooBigError`\n - Code: `-142`\n - Description: `MSG_TOO_BIG`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.MsgTooBigError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-142);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('MSG_TOO_BIG');\nconst err = new Err();\n```\n\n### WsProtocolError\n\n\u003e Websocket protocol error. Indicates that we are terminating the connection\n\u003e due to a malformed frame or other protocol violation.\n\n - Name: `WsProtocolError`\n - Code: `-145`\n - Description: `WS_PROTOCOL_ERROR`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.WsProtocolError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-145);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('WS_PROTOCOL_ERROR');\nconst err = new Err();\n```\n\n### AddressInUseError\n\n\u003e Returned when attempting to bind an address that is already in use.\n\n - Name: `AddressInUseError`\n - Code: `-147`\n - Description: `ADDRESS_IN_USE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.AddressInUseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-147);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ADDRESS_IN_USE');\nconst err = new Err();\n```\n\n### SslHandshakeNotCompletedError\n\n\u003e An operation failed because the SSL handshake has not completed.\n\n - Name: `SslHandshakeNotCompletedError`\n - Code: `-148`\n - Description: `SSL_HANDSHAKE_NOT_COMPLETED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslHandshakeNotCompletedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-148);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_HANDSHAKE_NOT_COMPLETED');\nconst err = new Err();\n```\n\n### SslBadPeerPublicKeyError\n\n\u003e SSL peer's public key is invalid.\n\n - Name: `SslBadPeerPublicKeyError`\n - Code: `-149`\n - Description: `SSL_BAD_PEER_PUBLIC_KEY`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslBadPeerPublicKeyError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-149);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_BAD_PEER_PUBLIC_KEY');\nconst err = new Err();\n```\n\n### SslPinnedKeyNotInCertChainError\n\n\u003e The certificate didn't match the built-in public key pins for the host name.\n\u003e The pins are set in net/http/transport_security_state.cc and require that\n\u003e one of a set of public keys exist on the path from the leaf to the root.\n\n - Name: `SslPinnedKeyNotInCertChainError`\n - Code: `-150`\n - Description: `SSL_PINNED_KEY_NOT_IN_CERT_CHAIN`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslPinnedKeyNotInCertChainError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-150);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_PINNED_KEY_NOT_IN_CERT_CHAIN');\nconst err = new Err();\n```\n\n### ClientAuthCertTypeUnsupportedError\n\n\u003e Server request for client certificate did not contain any types we support.\n\n - Name: `ClientAuthCertTypeUnsupportedError`\n - Code: `-151`\n - Description: `CLIENT_AUTH_CERT_TYPE_UNSUPPORTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ClientAuthCertTypeUnsupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-151);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CLIENT_AUTH_CERT_TYPE_UNSUPPORTED');\nconst err = new Err();\n```\n\n### SslDecryptErrorAlertError\n\n\u003e An SSL peer sent us a fatal decrypt_error alert. This typically occurs when\n\u003e a peer could not correctly verify a signature (in CertificateVerify or\n\u003e ServerKeyExchange) or validate a Finished message.\n\n - Name: `SslDecryptErrorAlertError`\n - Code: `-153`\n - Description: `SSL_DECRYPT_ERROR_ALERT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslDecryptErrorAlertError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-153);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_DECRYPT_ERROR_ALERT');\nconst err = new Err();\n```\n\n### WsThrottleQueueTooLargeError\n\n\u003e There are too many pending WebSocketJob instances, so the new job was not\n\u003e pushed to the queue.\n\n - Name: `WsThrottleQueueTooLargeError`\n - Code: `-154`\n - Description: `WS_THROTTLE_QUEUE_TOO_LARGE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.WsThrottleQueueTooLargeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-154);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('WS_THROTTLE_QUEUE_TOO_LARGE');\nconst err = new Err();\n```\n\n### SslServerCertChangedError\n\n\u003e The SSL server certificate changed in a renegotiation.\n\n - Name: `SslServerCertChangedError`\n - Code: `-156`\n - Description: `SSL_SERVER_CERT_CHANGED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslServerCertChangedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-156);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_SERVER_CERT_CHANGED');\nconst err = new Err();\n```\n\n### SslUnrecognizedNameAlertError\n\n\u003e The SSL server sent us a fatal unrecognized_name alert.\n\n - Name: `SslUnrecognizedNameAlertError`\n - Code: `-159`\n - Description: `SSL_UNRECOGNIZED_NAME_ALERT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslUnrecognizedNameAlertError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-159);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_UNRECOGNIZED_NAME_ALERT');\nconst err = new Err();\n```\n\n### SocketSetReceiveBufferSizeError\n\n\u003e Failed to set the socket's receive buffer size as requested.\n\n - Name: `SocketSetReceiveBufferSizeError`\n - Code: `-160`\n - Description: `SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SocketSetReceiveBufferSizeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-160);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR');\nconst err = new Err();\n```\n\n### SocketSetSendBufferSizeError\n\n\u003e Failed to set the socket's send buffer size as requested.\n\n - Name: `SocketSetSendBufferSizeError`\n - Code: `-161`\n - Description: `SOCKET_SET_SEND_BUFFER_SIZE_ERROR`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SocketSetSendBufferSizeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-161);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKET_SET_SEND_BUFFER_SIZE_ERROR');\nconst err = new Err();\n```\n\n### SocketReceiveBufferSizeUnchangeableError\n\n\u003e Failed to set the socket's receive buffer size as requested, despite success\n\u003e return code from setsockopt.\n\n - Name: `SocketReceiveBufferSizeUnchangeableError`\n - Code: `-162`\n - Description: `SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SocketReceiveBufferSizeUnchangeableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-162);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE');\nconst err = new Err();\n```\n\n### SocketSendBufferSizeUnchangeableError\n\n\u003e Failed to set the socket's send buffer size as requested, despite success\n\u003e return code from setsockopt.\n\n - Name: `SocketSendBufferSizeUnchangeableError`\n - Code: `-163`\n - Description: `SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SocketSendBufferSizeUnchangeableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-163);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE');\nconst err = new Err();\n```\n\n### SslClientAuthCertBadFormatError\n\n\u003e Failed to import a client certificate from the platform store into the SSL\n\u003e library.\n\n - Name: `SslClientAuthCertBadFormatError`\n - Code: `-164`\n - Description: `SSL_CLIENT_AUTH_CERT_BAD_FORMAT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslClientAuthCertBadFormatError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-164);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_CLIENT_AUTH_CERT_BAD_FORMAT');\nconst err = new Err();\n```\n\n### IcannNameCollisionError\n\n\u003e Resolving a hostname to an IP address list included the IPv4 address\n\u003e \"127.0.53.53\". This is a special IP address which ICANN has recommended to\n\u003e indicate there was a name collision, and alert admins to a potential\n\u003e problem.\n\n - Name: `IcannNameCollisionError`\n - Code: `-166`\n - Description: `ICANN_NAME_COLLISION`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.IcannNameCollisionError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-166);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ICANN_NAME_COLLISION');\nconst err = new Err();\n```\n\n### SslServerCertBadFormatError\n\n\u003e The SSL server presented a certificate which could not be decoded. This is\n\u003e not a certificate error code as no X509Certificate object is available. This\n\u003e error is fatal.\n\n - Name: `SslServerCertBadFormatError`\n - Code: `-167`\n - Description: `SSL_SERVER_CERT_BAD_FORMAT`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslServerCertBadFormatError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-167);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_SERVER_CERT_BAD_FORMAT');\nconst err = new Err();\n```\n\n### CtSthParsingFailedError\n\n\u003e Certificate Transparency: Received a signed tree head that failed to parse.\n\n - Name: `CtSthParsingFailedError`\n - Code: `-168`\n - Description: `CT_STH_PARSING_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.CtSthParsingFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-168);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CT_STH_PARSING_FAILED');\nconst err = new Err();\n```\n\n### CtSthIncompleteError\n\n\u003e Certificate Transparency: Received a signed tree head whose JSON parsing was\n\u003e OK but was missing some of the fields.\n\n - Name: `CtSthIncompleteError`\n - Code: `-169`\n - Description: `CT_STH_INCOMPLETE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.CtSthIncompleteError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-169);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CT_STH_INCOMPLETE');\nconst err = new Err();\n```\n\n### UnableToReuseConnectionForProxyAuthError\n\n\u003e The attempt to reuse a connection to send proxy auth credentials failed\n\u003e before the AuthController was used to generate credentials. The caller should\n\u003e reuse the controller with a new connection. This error is only used\n\u003e internally by the network stack.\n\n - Name: `UnableToReuseConnectionForProxyAuthError`\n - Code: `-170`\n - Description: `UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.UnableToReuseConnectionForProxyAuthError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-170);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH');\nconst err = new Err();\n```\n\n### CtConsistencyProofParsingFailedError\n\n\u003e Certificate Transparency: Failed to parse the received consistency proof.\n\n - Name: `CtConsistencyProofParsingFailedError`\n - Code: `-171`\n - Description: `CT_CONSISTENCY_PROOF_PARSING_FAILED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.CtConsistencyProofParsingFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-171);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CT_CONSISTENCY_PROOF_PARSING_FAILED');\nconst err = new Err();\n```\n\n### SslObsoleteCipherError\n\n\u003e The SSL server required an unsupported cipher suite that has since been\n\u003e removed. This error will temporarily be signaled on a fallback for one or two\n\u003e releases immediately following a cipher suite's removal, after which the\n\u003e fallback will be removed.\n\n - Name: `SslObsoleteCipherError`\n - Code: `-172`\n - Description: `SSL_OBSOLETE_CIPHER`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslObsoleteCipherError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-172);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_OBSOLETE_CIPHER');\nconst err = new Err();\n```\n\n### WsUpgradeError\n\n\u003e When a WebSocket handshake is done successfully and the connection has been\n\u003e upgraded, the URLRequest is cancelled with this error code.\n\n - Name: `WsUpgradeError`\n - Code: `-173`\n - Description: `WS_UPGRADE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.WsUpgradeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-173);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('WS_UPGRADE');\nconst err = new Err();\n```\n\n### ReadIfReadyNotImplementedError\n\n\u003e Socket ReadIfReady support is not implemented. This error should not be user\n\u003e visible, because the normal Read() method is used as a fallback.\n\n - Name: `ReadIfReadyNotImplementedError`\n - Code: `-174`\n - Description: `READ_IF_READY_NOT_IMPLEMENTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.ReadIfReadyNotImplementedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-174);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('READ_IF_READY_NOT_IMPLEMENTED');\nconst err = new Err();\n```\n\n### NoBufferSpaceError\n\n\u003e No socket buffer space is available.\n\n - Name: `NoBufferSpaceError`\n - Code: `-176`\n - Description: `NO_BUFFER_SPACE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.NoBufferSpaceError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-176);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NO_BUFFER_SPACE');\nconst err = new Err();\n```\n\n### SslClientAuthNoCommonAlgorithmsError\n\n\u003e There were no common signature algorithms between our client certificate\n\u003e private key and the server's preferences.\n\n - Name: `SslClientAuthNoCommonAlgorithmsError`\n - Code: `-177`\n - Description: `SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslClientAuthNoCommonAlgorithmsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-177);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS');\nconst err = new Err();\n```\n\n### EarlyDataRejectedError\n\n\u003e TLS 1.3 early data was rejected by the server. This will be received before\n\u003e any data is returned from the socket. The request should be retried with\n\u003e early data disabled.\n\n - Name: `EarlyDataRejectedError`\n - Code: `-178`\n - Description: `EARLY_DATA_REJECTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.EarlyDataRejectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-178);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('EARLY_DATA_REJECTED');\nconst err = new Err();\n```\n\n### WrongVersionOnEarlyDataError\n\n\u003e TLS 1.3 early data was offered, but the server responded with TLS 1.2 or\n\u003e earlier. This is an internal error code to account for a\n\u003e backwards-compatibility issue with early data and TLS 1.2. It will be\n\u003e received before any data is returned from the socket. The request should be\n\u003e retried with early data disabled.\n\u003e \n\u003e See https://tools.ietf.org/html/rfc8446#appendix-D.3 for details.\n\n - Name: `WrongVersionOnEarlyDataError`\n - Code: `-179`\n - Description: `WRONG_VERSION_ON_EARLY_DATA`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.WrongVersionOnEarlyDataError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-179);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('WRONG_VERSION_ON_EARLY_DATA');\nconst err = new Err();\n```\n\n### Tls13DowngradeDetectedError\n\n\u003e TLS 1.3 was enabled, but a lower version was negotiated and the server\n\u003e returned a value indicating it supported TLS 1.3. This is part of a security\n\u003e check in TLS 1.3, but it may also indicate the user is behind a buggy\n\u003e TLS-terminating proxy which implemented TLS 1.2 incorrectly. (See\n\u003e https://crbug.com/boringssl/226.)\n\n - Name: `Tls13DowngradeDetectedError`\n - Code: `-180`\n - Description: `TLS13_DOWNGRADE_DETECTED`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.Tls13DowngradeDetectedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-180);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TLS13_DOWNGRADE_DETECTED');\nconst err = new Err();\n```\n\n### SslKeyUsageIncompatibleError\n\n\u003e The server's certificate has a keyUsage extension incompatible with the\n\u003e negotiated TLS key exchange method.\n\n - Name: `SslKeyUsageIncompatibleError`\n - Code: `-181`\n - Description: `SSL_KEY_USAGE_INCOMPATIBLE`\n - Type: connection\n\n```js\nconst err = new chromiumNetErrors.SslKeyUsageIncompatibleError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-181);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_KEY_USAGE_INCOMPATIBLE');\nconst err = new Err();\n```\n\n### CertCommonNameInvalidError\n\n\u003e The server responded with a certificate whose common name did not match\n\u003e the host name. This could mean:\n\u003e \n\u003e 1. An attacker has redirected our traffic to their server and is\n\u003e presenting a certificate for which they know the private key.\n\u003e \n\u003e 2. The server is misconfigured and responding with the wrong cert.\n\u003e \n\u003e 3. The user is on a wireless network and is being redirected to the\n\u003e network's login page.\n\u003e \n\u003e 4. The OS has used a DNS search suffix and the server doesn't have\n\u003e a certificate for the abbreviated name in the address bar.\n\u003e \n\n - Name: `CertCommonNameInvalidError`\n - Code: `-200`\n - Description: `CERT_COMMON_NAME_INVALID`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertCommonNameInvalidError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-200);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_COMMON_NAME_INVALID');\nconst err = new Err();\n```\n\n### CertDateInvalidError\n\n\u003e The server responded with a certificate that, by our clock, appears to\n\u003e either not yet be valid or to have expired. This could mean:\n\u003e \n\u003e 1. An attacker is presenting an old certificate for which they have\n\u003e managed to obtain the private key.\n\u003e \n\u003e 2. The server is misconfigured and is not presenting a valid cert.\n\u003e \n\u003e 3. Our clock is wrong.\n\u003e \n\n - Name: `CertDateInvalidError`\n - Code: `-201`\n - Description: `CERT_DATE_INVALID`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertDateInvalidError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-201);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_DATE_INVALID');\nconst err = new Err();\n```\n\n### CertAuthorityInvalidError\n\n\u003e The server responded with a certificate that is signed by an authority\n\u003e we don't trust. The could mean:\n\u003e \n\u003e 1. An attacker has substituted the real certificate for a cert that\n\u003e contains their public key and is signed by their cousin.\n\u003e \n\u003e 2. The server operator has a legitimate certificate from a CA we don't\n\u003e know about, but should trust.\n\u003e \n\u003e 3. The server is presenting a self-signed certificate, providing no\n\u003e defense against active attackers (but foiling passive attackers).\n\u003e \n\n - Name: `CertAuthorityInvalidError`\n - Code: `-202`\n - Description: `CERT_AUTHORITY_INVALID`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertAuthorityInvalidError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-202);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_AUTHORITY_INVALID');\nconst err = new Err();\n```\n\n### CertContainsErrorsError\n\n\u003e The server responded with a certificate that contains errors.\n\u003e This error is not recoverable.\n\u003e \n\u003e MSDN describes this error as follows:\n\u003e \"The SSL certificate contains errors.\"\n\u003e NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency,\n\u003e use that code instead of this one from now on.\n\u003e \n\n - Name: `CertContainsErrorsError`\n - Code: `-203`\n - Description: `CERT_CONTAINS_ERRORS`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertContainsErrorsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-203);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_CONTAINS_ERRORS');\nconst err = new Err();\n```\n\n### CertNoRevocationMechanismError\n\n\u003e The certificate has no mechanism for determining if it is revoked. In\n\u003e effect, this certificate cannot be revoked.\n\n - Name: `CertNoRevocationMechanismError`\n - Code: `-204`\n - Description: `CERT_NO_REVOCATION_MECHANISM`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertNoRevocationMechanismError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-204);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_NO_REVOCATION_MECHANISM');\nconst err = new Err();\n```\n\n### CertUnableToCheckRevocationError\n\n\u003e Revocation information for the security certificate for this site is not\n\u003e available. This could mean:\n\u003e \n\u003e 1. An attacker has compromised the private key in the certificate and is\n\u003e blocking our attempt to find out that the cert was revoked.\n\u003e \n\u003e 2. The certificate is unrevoked, but the revocation server is busy or\n\u003e unavailable.\n\u003e \n\n - Name: `CertUnableToCheckRevocationError`\n - Code: `-205`\n - Description: `CERT_UNABLE_TO_CHECK_REVOCATION`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertUnableToCheckRevocationError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-205);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_UNABLE_TO_CHECK_REVOCATION');\nconst err = new Err();\n```\n\n### CertRevokedError\n\n\u003e The server responded with a certificate has been revoked.\n\u003e We have the capability to ignore this error, but it is probably not the\n\u003e thing to do.\n\n - Name: `CertRevokedError`\n - Code: `-206`\n - Description: `CERT_REVOKED`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertRevokedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-206);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_REVOKED');\nconst err = new Err();\n```\n\n### CertInvalidError\n\n\u003e The server responded with a certificate that is invalid.\n\u003e This error is not recoverable.\n\u003e \n\u003e MSDN describes this error as follows:\n\u003e \"The SSL certificate is invalid.\"\n\u003e \n\n - Name: `CertInvalidError`\n - Code: `-207`\n - Description: `CERT_INVALID`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertInvalidError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-207);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_INVALID');\nconst err = new Err();\n```\n\n### CertWeakSignatureAlgorithmError\n\n\u003e The server responded with a certificate that is signed using a weak\n\u003e signature algorithm.\n\n - Name: `CertWeakSignatureAlgorithmError`\n - Code: `-208`\n - Description: `CERT_WEAK_SIGNATURE_ALGORITHM`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertWeakSignatureAlgorithmError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-208);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_WEAK_SIGNATURE_ALGORITHM');\nconst err = new Err();\n```\n\n### CertNonUniqueNameError\n\n\u003e The host name specified in the certificate is not unique.\n\n - Name: `CertNonUniqueNameError`\n - Code: `-210`\n - Description: `CERT_NON_UNIQUE_NAME`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertNonUniqueNameError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-210);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_NON_UNIQUE_NAME');\nconst err = new Err();\n```\n\n### CertWeakKeyError\n\n\u003e The server responded with a certificate that contains a weak key (e.g.\n\u003e a too-small RSA key).\n\n - Name: `CertWeakKeyError`\n - Code: `-211`\n - Description: `CERT_WEAK_KEY`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertWeakKeyError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-211);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_WEAK_KEY');\nconst err = new Err();\n```\n\n### CertNameConstraintViolationError\n\n\u003e The certificate claimed DNS names that are in violation of name constraints.\n\n - Name: `CertNameConstraintViolationError`\n - Code: `-212`\n - Description: `CERT_NAME_CONSTRAINT_VIOLATION`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertNameConstraintViolationError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-212);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_NAME_CONSTRAINT_VIOLATION');\nconst err = new Err();\n```\n\n### CertValidityTooLongError\n\n\u003e The certificate's validity period is too long.\n\n - Name: `CertValidityTooLongError`\n - Code: `-213`\n - Description: `CERT_VALIDITY_TOO_LONG`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertValidityTooLongError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-213);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_VALIDITY_TOO_LONG');\nconst err = new Err();\n```\n\n### CertificateTransparencyRequiredError\n\n\u003e Certificate Transparency was required for this connection, but the server\n\u003e did not provide CT information that complied with the policy.\n\n - Name: `CertificateTransparencyRequiredError`\n - Code: `-214`\n - Description: `CERTIFICATE_TRANSPARENCY_REQUIRED`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertificateTransparencyRequiredError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-214);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERTIFICATE_TRANSPARENCY_REQUIRED');\nconst err = new Err();\n```\n\n### CertSymantecLegacyError\n\n\u003e The certificate chained to a legacy Symantec root that is no longer trusted.\n\u003e https://g.co/chrome/symantecpkicerts\n\n - Name: `CertSymantecLegacyError`\n - Code: `-215`\n - Description: `CERT_SYMANTEC_LEGACY`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertSymantecLegacyError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-215);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_SYMANTEC_LEGACY');\nconst err = new Err();\n```\n\n### CertKnownInterceptionBlockedError\n\n\u003e The certificate is known to be used for interception by an entity other\n\u003e the device owner.\n\n - Name: `CertKnownInterceptionBlockedError`\n - Code: `-217`\n - Description: `CERT_KNOWN_INTERCEPTION_BLOCKED`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertKnownInterceptionBlockedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-217);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_KNOWN_INTERCEPTION_BLOCKED');\nconst err = new Err();\n```\n\n### SslObsoleteVersionError\n\n\u003e The connection uses an obsolete version of SSL/TLS.\n\n - Name: `SslObsoleteVersionError`\n - Code: `-218`\n - Description: `SSL_OBSOLETE_VERSION`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.SslObsoleteVersionError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-218);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SSL_OBSOLETE_VERSION');\nconst err = new Err();\n```\n\n### CertEndError\n\n\u003e The value immediately past the last certificate error code.\n\n - Name: `CertEndError`\n - Code: `-219`\n - Description: `CERT_END`\n - Type: certificate\n\n```js\nconst err = new chromiumNetErrors.CertEndError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-219);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_END');\nconst err = new Err();\n```\n\n### InvalidUrlError\n\n\u003e The URL is invalid.\n\n - Name: `InvalidUrlError`\n - Code: `-300`\n - Description: `INVALID_URL`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.InvalidUrlError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-300);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_URL');\nconst err = new Err();\n```\n\n### DisallowedUrlSchemeError\n\n\u003e The scheme of the URL is disallowed.\n\n - Name: `DisallowedUrlSchemeError`\n - Code: `-301`\n - Description: `DISALLOWED_URL_SCHEME`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.DisallowedUrlSchemeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-301);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DISALLOWED_URL_SCHEME');\nconst err = new Err();\n```\n\n### UnknownUrlSchemeError\n\n\u003e The scheme of the URL is unknown.\n\n - Name: `UnknownUrlSchemeError`\n - Code: `-302`\n - Description: `UNKNOWN_URL_SCHEME`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnknownUrlSchemeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-302);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNKNOWN_URL_SCHEME');\nconst err = new Err();\n```\n\n### InvalidRedirectError\n\n\u003e Attempting to load an URL resulted in a redirect to an invalid URL.\n\n - Name: `InvalidRedirectError`\n - Code: `-303`\n - Description: `INVALID_REDIRECT`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.InvalidRedirectError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-303);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_REDIRECT');\nconst err = new Err();\n```\n\n### TooManyRedirectsError\n\n\u003e Attempting to load an URL resulted in too many redirects.\n\n - Name: `TooManyRedirectsError`\n - Code: `-310`\n - Description: `TOO_MANY_REDIRECTS`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.TooManyRedirectsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-310);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TOO_MANY_REDIRECTS');\nconst err = new Err();\n```\n\n### UnsafeRedirectError\n\n\u003e Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect\n\u003e to file:// is considered unsafe).\n\n - Name: `UnsafeRedirectError`\n - Code: `-311`\n - Description: `UNSAFE_REDIRECT`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnsafeRedirectError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-311);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNSAFE_REDIRECT');\nconst err = new Err();\n```\n\n### UnsafePortError\n\n\u003e Attempting to load an URL with an unsafe port number. These are port\n\u003e numbers that correspond to services, which are not robust to spurious input\n\u003e that may be constructed as a result of an allowed web construct (e.g., HTTP\n\u003e looks a lot like SMTP, so form submission to port 25 is denied).\n\n - Name: `UnsafePortError`\n - Code: `-312`\n - Description: `UNSAFE_PORT`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnsafePortError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-312);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNSAFE_PORT');\nconst err = new Err();\n```\n\n### InvalidResponseError\n\n\u003e The server's response was invalid.\n\n - Name: `InvalidResponseError`\n - Code: `-320`\n - Description: `INVALID_RESPONSE`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.InvalidResponseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-320);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_RESPONSE');\nconst err = new Err();\n```\n\n### InvalidChunkedEncodingError\n\n\u003e Error in chunked transfer encoding.\n\n - Name: `InvalidChunkedEncodingError`\n - Code: `-321`\n - Description: `INVALID_CHUNKED_ENCODING`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.InvalidChunkedEncodingError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-321);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_CHUNKED_ENCODING');\nconst err = new Err();\n```\n\n### MethodNotSupportedError\n\n\u003e The server did not support the request method.\n\n - Name: `MethodNotSupportedError`\n - Code: `-322`\n - Description: `METHOD_NOT_SUPPORTED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.MethodNotSupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-322);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('METHOD_NOT_SUPPORTED');\nconst err = new Err();\n```\n\n### UnexpectedProxyAuthError\n\n\u003e The response was 407 (Proxy Authentication Required), yet we did not send\n\u003e the request to a proxy.\n\n - Name: `UnexpectedProxyAuthError`\n - Code: `-323`\n - Description: `UNEXPECTED_PROXY_AUTH`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnexpectedProxyAuthError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-323);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNEXPECTED_PROXY_AUTH');\nconst err = new Err();\n```\n\n### EmptyResponseError\n\n\u003e The server closed the connection without sending any data.\n\n - Name: `EmptyResponseError`\n - Code: `-324`\n - Description: `EMPTY_RESPONSE`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.EmptyResponseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-324);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('EMPTY_RESPONSE');\nconst err = new Err();\n```\n\n### ResponseHeadersTooBigError\n\n\u003e The headers section of the response is too large.\n\n - Name: `ResponseHeadersTooBigError`\n - Code: `-325`\n - Description: `RESPONSE_HEADERS_TOO_BIG`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ResponseHeadersTooBigError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-325);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('RESPONSE_HEADERS_TOO_BIG');\nconst err = new Err();\n```\n\n### PacScriptFailedError\n\n\u003e The evaluation of the PAC script failed.\n\n - Name: `PacScriptFailedError`\n - Code: `-327`\n - Description: `PAC_SCRIPT_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.PacScriptFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-327);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PAC_SCRIPT_FAILED');\nconst err = new Err();\n```\n\n### RequestRangeNotSatisfiableError\n\n\u003e The response was 416 (Requested range not satisfiable) and the server cannot\n\u003e satisfy the range requested.\n\n - Name: `RequestRangeNotSatisfiableError`\n - Code: `-328`\n - Description: `REQUEST_RANGE_NOT_SATISFIABLE`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.RequestRangeNotSatisfiableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-328);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('REQUEST_RANGE_NOT_SATISFIABLE');\nconst err = new Err();\n```\n\n### MalformedIdentityError\n\n\u003e The identity used for authentication is invalid.\n\n - Name: `MalformedIdentityError`\n - Code: `-329`\n - Description: `MALFORMED_IDENTITY`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.MalformedIdentityError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-329);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('MALFORMED_IDENTITY');\nconst err = new Err();\n```\n\n### ContentDecodingFailedError\n\n\u003e Content decoding of the response body failed.\n\n - Name: `ContentDecodingFailedError`\n - Code: `-330`\n - Description: `CONTENT_DECODING_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ContentDecodingFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-330);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONTENT_DECODING_FAILED');\nconst err = new Err();\n```\n\n### NetworkIoSuspendedError\n\n\u003e An operation could not be completed because all network IO\n\u003e is suspended.\n\n - Name: `NetworkIoSuspendedError`\n - Code: `-331`\n - Description: `NETWORK_IO_SUSPENDED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.NetworkIoSuspendedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-331);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NETWORK_IO_SUSPENDED');\nconst err = new Err();\n```\n\n### SynReplyNotReceivedError\n\n\u003e FLIP data received without receiving a SYN_REPLY on the stream.\n\n - Name: `SynReplyNotReceivedError`\n - Code: `-332`\n - Description: `SYN_REPLY_NOT_RECEIVED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.SynReplyNotReceivedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-332);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SYN_REPLY_NOT_RECEIVED');\nconst err = new Err();\n```\n\n### EncodingConversionFailedError\n\n\u003e Converting the response to target encoding failed.\n\n - Name: `EncodingConversionFailedError`\n - Code: `-333`\n - Description: `ENCODING_CONVERSION_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.EncodingConversionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-333);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ENCODING_CONVERSION_FAILED');\nconst err = new Err();\n```\n\n### UnrecognizedFtpDirectoryListingFormatError\n\n\u003e The server sent an FTP directory listing in a format we do not understand.\n\n - Name: `UnrecognizedFtpDirectoryListingFormatError`\n - Code: `-334`\n - Description: `UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnrecognizedFtpDirectoryListingFormatError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-334);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT');\nconst err = new Err();\n```\n\n### NoSupportedProxiesError\n\n\u003e There are no supported proxies in the provided list.\n\n - Name: `NoSupportedProxiesError`\n - Code: `-336`\n - Description: `NO_SUPPORTED_PROXIES`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.NoSupportedProxiesError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-336);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NO_SUPPORTED_PROXIES');\nconst err = new Err();\n```\n\n### Http2ProtocolError\n\n\u003e There is an HTTP/2 protocol error.\n\n - Name: `Http2ProtocolError`\n - Code: `-337`\n - Description: `HTTP2_PROTOCOL_ERROR`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2ProtocolError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-337);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_PROTOCOL_ERROR');\nconst err = new Err();\n```\n\n### InvalidAuthCredentialsError\n\n\u003e Credentials could not be established during HTTP Authentication.\n\n - Name: `InvalidAuthCredentialsError`\n - Code: `-338`\n - Description: `INVALID_AUTH_CREDENTIALS`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.InvalidAuthCredentialsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-338);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_AUTH_CREDENTIALS');\nconst err = new Err();\n```\n\n### UnsupportedAuthSchemeError\n\n\u003e An HTTP Authentication scheme was tried which is not supported on this\n\u003e machine.\n\n - Name: `UnsupportedAuthSchemeError`\n - Code: `-339`\n - Description: `UNSUPPORTED_AUTH_SCHEME`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnsupportedAuthSchemeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-339);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNSUPPORTED_AUTH_SCHEME');\nconst err = new Err();\n```\n\n### EncodingDetectionFailedError\n\n\u003e Detecting the encoding of the response failed.\n\n - Name: `EncodingDetectionFailedError`\n - Code: `-340`\n - Description: `ENCODING_DETECTION_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.EncodingDetectionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-340);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ENCODING_DETECTION_FAILED');\nconst err = new Err();\n```\n\n### MissingAuthCredentialsError\n\n\u003e (GSSAPI) No Kerberos credentials were available during HTTP Authentication.\n\n - Name: `MissingAuthCredentialsError`\n - Code: `-341`\n - Description: `MISSING_AUTH_CREDENTIALS`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.MissingAuthCredentialsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-341);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('MISSING_AUTH_CREDENTIALS');\nconst err = new Err();\n```\n\n### UnexpectedSecurityLibraryStatusError\n\n\u003e An unexpected, but documented, SSPI or GSSAPI status code was returned.\n\n - Name: `UnexpectedSecurityLibraryStatusError`\n - Code: `-342`\n - Description: `UNEXPECTED_SECURITY_LIBRARY_STATUS`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UnexpectedSecurityLibraryStatusError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-342);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNEXPECTED_SECURITY_LIBRARY_STATUS');\nconst err = new Err();\n```\n\n### MisconfiguredAuthEnvironmentError\n\n\u003e The environment was not set up correctly for authentication (for\n\u003e example, no KDC could be found or the principal is unknown.\n\n - Name: `MisconfiguredAuthEnvironmentError`\n - Code: `-343`\n - Description: `MISCONFIGURED_AUTH_ENVIRONMENT`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.MisconfiguredAuthEnvironmentError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-343);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('MISCONFIGURED_AUTH_ENVIRONMENT');\nconst err = new Err();\n```\n\n### UndocumentedSecurityLibraryStatusError\n\n\u003e An undocumented SSPI or GSSAPI status code was returned.\n\n - Name: `UndocumentedSecurityLibraryStatusError`\n - Code: `-344`\n - Description: `UNDOCUMENTED_SECURITY_LIBRARY_STATUS`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.UndocumentedSecurityLibraryStatusError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-344);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('UNDOCUMENTED_SECURITY_LIBRARY_STATUS');\nconst err = new Err();\n```\n\n### ResponseBodyTooBigToDrainError\n\n\u003e The HTTP response was too big to drain.\n\n - Name: `ResponseBodyTooBigToDrainError`\n - Code: `-345`\n - Description: `RESPONSE_BODY_TOO_BIG_TO_DRAIN`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ResponseBodyTooBigToDrainError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-345);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('RESPONSE_BODY_TOO_BIG_TO_DRAIN');\nconst err = new Err();\n```\n\n### ResponseHeadersMultipleContentLengthError\n\n\u003e The HTTP response contained multiple distinct Content-Length headers.\n\n - Name: `ResponseHeadersMultipleContentLengthError`\n - Code: `-346`\n - Description: `RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ResponseHeadersMultipleContentLengthError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-346);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH');\nconst err = new Err();\n```\n\n### IncompleteHttp2HeadersError\n\n\u003e HTTP/2 headers have been received, but not all of them - status or version\n\u003e headers are missing, so we're expecting additional frames to complete them.\n\n - Name: `IncompleteHttp2HeadersError`\n - Code: `-347`\n - Description: `INCOMPLETE_HTTP2_HEADERS`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.IncompleteHttp2HeadersError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-347);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INCOMPLETE_HTTP2_HEADERS');\nconst err = new Err();\n```\n\n### PacNotInDhcpError\n\n\u003e No PAC URL configuration could be retrieved from DHCP. This can indicate\n\u003e either a failure to retrieve the DHCP configuration, or that there was no\n\u003e PAC URL configured in DHCP.\n\n - Name: `PacNotInDhcpError`\n - Code: `-348`\n - Description: `PAC_NOT_IN_DHCP`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.PacNotInDhcpError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-348);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PAC_NOT_IN_DHCP');\nconst err = new Err();\n```\n\n### ResponseHeadersMultipleContentDispositionError\n\n\u003e The HTTP response contained multiple Content-Disposition headers.\n\n - Name: `ResponseHeadersMultipleContentDispositionError`\n - Code: `-349`\n - Description: `RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ResponseHeadersMultipleContentDispositionError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-349);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION');\nconst err = new Err();\n```\n\n### ResponseHeadersMultipleLocationError\n\n\u003e The HTTP response contained multiple Location headers.\n\n - Name: `ResponseHeadersMultipleLocationError`\n - Code: `-350`\n - Description: `RESPONSE_HEADERS_MULTIPLE_LOCATION`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ResponseHeadersMultipleLocationError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-350);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('RESPONSE_HEADERS_MULTIPLE_LOCATION');\nconst err = new Err();\n```\n\n### Http2ServerRefusedStreamError\n\n\u003e HTTP/2 server refused the request without processing, and sent either a\n\u003e GOAWAY frame with error code NO_ERROR and Last-Stream-ID lower than the\n\u003e stream id corresponding to the request indicating that this request has not\n\u003e been processed yet, or a RST_STREAM frame with error code REFUSED_STREAM.\n\u003e Client MAY retry (on a different connection). See RFC7540 Section 8.1.4.\n\n - Name: `Http2ServerRefusedStreamError`\n - Code: `-351`\n - Description: `HTTP2_SERVER_REFUSED_STREAM`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2ServerRefusedStreamError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-351);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_SERVER_REFUSED_STREAM');\nconst err = new Err();\n```\n\n### Http2PingFailedError\n\n\u003e HTTP/2 server didn't respond to the PING message.\n\n - Name: `Http2PingFailedError`\n - Code: `-352`\n - Description: `HTTP2_PING_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2PingFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-352);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_PING_FAILED');\nconst err = new Err();\n```\n\n### ContentLengthMismatchError\n\n\u003e The HTTP response body transferred fewer bytes than were advertised by the\n\u003e Content-Length header when the connection is closed.\n\n - Name: `ContentLengthMismatchError`\n - Code: `-354`\n - Description: `CONTENT_LENGTH_MISMATCH`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ContentLengthMismatchError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-354);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONTENT_LENGTH_MISMATCH');\nconst err = new Err();\n```\n\n### IncompleteChunkedEncodingError\n\n\u003e The HTTP response body is transferred with Chunked-Encoding, but the\n\u003e terminating zero-length chunk was never sent when the connection is closed.\n\n - Name: `IncompleteChunkedEncodingError`\n - Code: `-355`\n - Description: `INCOMPLETE_CHUNKED_ENCODING`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.IncompleteChunkedEncodingError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-355);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INCOMPLETE_CHUNKED_ENCODING');\nconst err = new Err();\n```\n\n### QuicProtocolError\n\n\u003e There is a QUIC protocol error.\n\n - Name: `QuicProtocolError`\n - Code: `-356`\n - Description: `QUIC_PROTOCOL_ERROR`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.QuicProtocolError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-356);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('QUIC_PROTOCOL_ERROR');\nconst err = new Err();\n```\n\n### ResponseHeadersTruncatedError\n\n\u003e The HTTP headers were truncated by an EOF.\n\n - Name: `ResponseHeadersTruncatedError`\n - Code: `-357`\n - Description: `RESPONSE_HEADERS_TRUNCATED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ResponseHeadersTruncatedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-357);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('RESPONSE_HEADERS_TRUNCATED');\nconst err = new Err();\n```\n\n### QuicHandshakeFailedError\n\n\u003e The QUIC crytpo handshake failed. This means that the server was unable\n\u003e to read any requests sent, so they may be resent.\n\n - Name: `QuicHandshakeFailedError`\n - Code: `-358`\n - Description: `QUIC_HANDSHAKE_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.QuicHandshakeFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-358);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('QUIC_HANDSHAKE_FAILED');\nconst err = new Err();\n```\n\n### Http2InadequateTransportSecurityError\n\n\u003e Transport security is inadequate for the HTTP/2 version.\n\n - Name: `Http2InadequateTransportSecurityError`\n - Code: `-360`\n - Description: `HTTP2_INADEQUATE_TRANSPORT_SECURITY`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2InadequateTransportSecurityError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-360);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_INADEQUATE_TRANSPORT_SECURITY');\nconst err = new Err();\n```\n\n### Http2FlowControlError\n\n\u003e The peer violated HTTP/2 flow control.\n\n - Name: `Http2FlowControlError`\n - Code: `-361`\n - Description: `HTTP2_FLOW_CONTROL_ERROR`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2FlowControlError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-361);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_FLOW_CONTROL_ERROR');\nconst err = new Err();\n```\n\n### Http2FrameSizeError\n\n\u003e The peer sent an improperly sized HTTP/2 frame.\n\n - Name: `Http2FrameSizeError`\n - Code: `-362`\n - Description: `HTTP2_FRAME_SIZE_ERROR`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2FrameSizeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-362);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_FRAME_SIZE_ERROR');\nconst err = new Err();\n```\n\n### Http2CompressionError\n\n\u003e Decoding or encoding of compressed HTTP/2 headers failed.\n\n - Name: `Http2CompressionError`\n - Code: `-363`\n - Description: `HTTP2_COMPRESSION_ERROR`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2CompressionError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-363);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_COMPRESSION_ERROR');\nconst err = new Err();\n```\n\n### ProxyAuthRequestedWithNoConnectionError\n\n\u003e Proxy Auth Requested without a valid Client Socket Handle.\n\n - Name: `ProxyAuthRequestedWithNoConnectionError`\n - Code: `-364`\n - Description: `PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ProxyAuthRequestedWithNoConnectionError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-364);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION');\nconst err = new Err();\n```\n\n### Http_1_1RequiredError\n\n\u003e HTTP_1_1_REQUIRED error code received on HTTP/2 session.\n\n - Name: `Http_1_1RequiredError`\n - Code: `-365`\n - Description: `HTTP_1_1_REQUIRED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http_1_1RequiredError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-365);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP_1_1_REQUIRED');\nconst err = new Err();\n```\n\n### ProxyHttp_1_1RequiredError\n\n\u003e HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy.\n\n - Name: `ProxyHttp_1_1RequiredError`\n - Code: `-366`\n - Description: `PROXY_HTTP_1_1_REQUIRED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ProxyHttp_1_1RequiredError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-366);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PROXY_HTTP_1_1_REQUIRED');\nconst err = new Err();\n```\n\n### PacScriptTerminatedError\n\n\u003e The PAC script terminated fatally and must be reloaded.\n\n - Name: `PacScriptTerminatedError`\n - Code: `-367`\n - Description: `PAC_SCRIPT_TERMINATED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.PacScriptTerminatedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-367);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PAC_SCRIPT_TERMINATED');\nconst err = new Err();\n```\n\n### InvalidHttpResponseError\n\n\u003e The server was expected to return an HTTP/1.x response, but did not. Rather\n\u003e than treat it as HTTP/0.9, this error is returned.\n\n - Name: `InvalidHttpResponseError`\n - Code: `-370`\n - Description: `INVALID_HTTP_RESPONSE`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.InvalidHttpResponseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-370);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_HTTP_RESPONSE');\nconst err = new Err();\n```\n\n### ContentDecodingInitFailedError\n\n\u003e Initializing content decoding failed.\n\n - Name: `ContentDecodingInitFailedError`\n - Code: `-371`\n - Description: `CONTENT_DECODING_INIT_FAILED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.ContentDecodingInitFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-371);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CONTENT_DECODING_INIT_FAILED');\nconst err = new Err();\n```\n\n### Http2RstStreamNoErrorReceivedError\n\n\u003e Received HTTP/2 RST_STREAM frame with NO_ERROR error code. This error should\n\u003e be handled internally by HTTP/2 code, and should not make it above the\n\u003e SpdyStream layer.\n\n - Name: `Http2RstStreamNoErrorReceivedError`\n - Code: `-372`\n - Description: `HTTP2_RST_STREAM_NO_ERROR_RECEIVED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2RstStreamNoErrorReceivedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-372);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_RST_STREAM_NO_ERROR_RECEIVED');\nconst err = new Err();\n```\n\n### Http2PushedStreamNotAvailableError\n\n\u003e The pushed stream claimed by the request is no longer available.\n\n - Name: `Http2PushedStreamNotAvailableError`\n - Code: `-373`\n - Description: `HTTP2_PUSHED_STREAM_NOT_AVAILABLE`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2PushedStreamNotAvailableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-373);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_PUSHED_STREAM_NOT_AVAILABLE');\nconst err = new Err();\n```\n\n### Http2ClaimedPushedStreamResetByServerError\n\n\u003e A pushed stream was claimed and later reset by the server. When this happens,\n\u003e the request should be retried.\n\n - Name: `Http2ClaimedPushedStreamResetByServerError`\n - Code: `-374`\n - Description: `HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2ClaimedPushedStreamResetByServerError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-374);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER');\nconst err = new Err();\n```\n\n### TooManyRetriesError\n\n\u003e An HTTP transaction was retried too many times due for authentication or\n\u003e invalid certificates. This may be due to a bug in the net stack that would\n\u003e otherwise infinite loop, or if the server or proxy continually requests fresh\n\u003e credentials or presents a fresh invalid certificate.\n\n - Name: `TooManyRetriesError`\n - Code: `-375`\n - Description: `TOO_MANY_RETRIES`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.TooManyRetriesError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-375);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TOO_MANY_RETRIES');\nconst err = new Err();\n```\n\n### Http2StreamClosedError\n\n\u003e Received an HTTP/2 frame on a closed stream.\n\n - Name: `Http2StreamClosedError`\n - Code: `-376`\n - Description: `HTTP2_STREAM_CLOSED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2StreamClosedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-376);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_STREAM_CLOSED');\nconst err = new Err();\n```\n\n### Http2ClientRefusedStreamError\n\n\u003e Client is refusing an HTTP/2 stream.\n\n - Name: `Http2ClientRefusedStreamError`\n - Code: `-377`\n - Description: `HTTP2_CLIENT_REFUSED_STREAM`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2ClientRefusedStreamError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-377);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_CLIENT_REFUSED_STREAM');\nconst err = new Err();\n```\n\n### Http2PushedResponseDoesNotMatchError\n\n\u003e A pushed HTTP/2 stream was claimed by a request based on matching URL and\n\u003e request headers, but the pushed response headers do not match the request.\n\n - Name: `Http2PushedResponseDoesNotMatchError`\n - Code: `-378`\n - Description: `HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.Http2PushedResponseDoesNotMatchError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-378);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH');\nconst err = new Err();\n```\n\n### HttpResponseCodeFailureError\n\n\u003e The server returned a non-2xx HTTP response code.\n\u003e \n\u003e Not that this error is only used by certain APIs that interpret the HTTP\n\u003e response itself. URLRequest for instance just passes most non-2xx\n\u003e response back as success.\n\n - Name: `HttpResponseCodeFailureError`\n - Code: `-379`\n - Description: `HTTP_RESPONSE_CODE_FAILURE`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.HttpResponseCodeFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-379);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('HTTP_RESPONSE_CODE_FAILURE');\nconst err = new Err();\n```\n\n### QuicCertRootNotKnownError\n\n\u003e The certificate presented on a QUIC connection does not chain to a known root\n\u003e and the origin connected to is not on a list of domains where unknown roots\n\u003e are allowed.\n\n - Name: `QuicCertRootNotKnownError`\n - Code: `-380`\n - Description: `QUIC_CERT_ROOT_NOT_KNOWN`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.QuicCertRootNotKnownError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-380);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('QUIC_CERT_ROOT_NOT_KNOWN');\nconst err = new Err();\n```\n\n### QuicGoawayRequestCanBeRetriedError\n\n\u003e A GOAWAY frame has been received indicating that the request has not been\n\u003e processed and is therefore safe to retry on a different connection.\n\n - Name: `QuicGoawayRequestCanBeRetriedError`\n - Code: `-381`\n - Description: `QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED`\n - Type: http\n\n```js\nconst err = new chromiumNetErrors.QuicGoawayRequestCanBeRetriedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-381);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED');\nconst err = new Err();\n```\n\n### CacheMissError\n\n\u003e The cache does not have the requested entry.\n\n - Name: `CacheMissError`\n - Code: `-400`\n - Description: `CACHE_MISS`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheMissError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-400);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_MISS');\nconst err = new Err();\n```\n\n### CacheReadFailureError\n\n\u003e Unable to read from the disk cache.\n\n - Name: `CacheReadFailureError`\n - Code: `-401`\n - Description: `CACHE_READ_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheReadFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-401);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_READ_FAILURE');\nconst err = new Err();\n```\n\n### CacheWriteFailureError\n\n\u003e Unable to write to the disk cache.\n\n - Name: `CacheWriteFailureError`\n - Code: `-402`\n - Description: `CACHE_WRITE_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheWriteFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-402);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_WRITE_FAILURE');\nconst err = new Err();\n```\n\n### CacheOperationNotSupportedError\n\n\u003e The operation is not supported for this entry.\n\n - Name: `CacheOperationNotSupportedError`\n - Code: `-403`\n - Description: `CACHE_OPERATION_NOT_SUPPORTED`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheOperationNotSupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-403);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_OPERATION_NOT_SUPPORTED');\nconst err = new Err();\n```\n\n### CacheOpenFailureError\n\n\u003e The disk cache is unable to open this entry.\n\n - Name: `CacheOpenFailureError`\n - Code: `-404`\n - Description: `CACHE_OPEN_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheOpenFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-404);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_OPEN_FAILURE');\nconst err = new Err();\n```\n\n### CacheCreateFailureError\n\n\u003e The disk cache is unable to create this entry.\n\n - Name: `CacheCreateFailureError`\n - Code: `-405`\n - Description: `CACHE_CREATE_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheCreateFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-405);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_CREATE_FAILURE');\nconst err = new Err();\n```\n\n### CacheRaceError\n\n\u003e Multiple transactions are racing to create disk cache entries. This is an\n\u003e internal error returned from the HttpCache to the HttpCacheTransaction that\n\u003e tells the transaction to restart the entry-creation logic because the state\n\u003e of the cache has changed.\n\n - Name: `CacheRaceError`\n - Code: `-406`\n - Description: `CACHE_RACE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheRaceError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-406);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_RACE');\nconst err = new Err();\n```\n\n### CacheChecksumReadFailureError\n\n\u003e The cache was unable to read a checksum record on an entry. This can be\n\u003e returned from attempts to read from the cache. It is an internal error,\n\u003e returned by the SimpleCache backend, but not by any URLRequest methods\n\u003e or members.\n\n - Name: `CacheChecksumReadFailureError`\n - Code: `-407`\n - Description: `CACHE_CHECKSUM_READ_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheChecksumReadFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-407);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_CHECKSUM_READ_FAILURE');\nconst err = new Err();\n```\n\n### CacheChecksumMismatchError\n\n\u003e The cache found an entry with an invalid checksum. This can be returned from\n\u003e attempts to read from the cache. It is an internal error, returned by the\n\u003e SimpleCache backend, but not by any URLRequest methods or members.\n\n - Name: `CacheChecksumMismatchError`\n - Code: `-408`\n - Description: `CACHE_CHECKSUM_MISMATCH`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheChecksumMismatchError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-408);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_CHECKSUM_MISMATCH');\nconst err = new Err();\n```\n\n### CacheLockTimeoutError\n\n\u003e Internal error code for the HTTP cache. The cache lock timeout has fired.\n\n - Name: `CacheLockTimeoutError`\n - Code: `-409`\n - Description: `CACHE_LOCK_TIMEOUT`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheLockTimeoutError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-409);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_LOCK_TIMEOUT');\nconst err = new Err();\n```\n\n### CacheAuthFailureAfterReadError\n\n\u003e Received a challenge after the transaction has read some data, and the\n\u003e credentials aren't available. There isn't a way to get them at that point.\n\n - Name: `CacheAuthFailureAfterReadError`\n - Code: `-410`\n - Description: `CACHE_AUTH_FAILURE_AFTER_READ`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheAuthFailureAfterReadError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-410);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_AUTH_FAILURE_AFTER_READ');\nconst err = new Err();\n```\n\n### CacheEntryNotSuitableError\n\n\u003e Internal not-quite error code for the HTTP cache. In-memory hints suggest\n\u003e that the cache entry would not have been useable with the transaction's\n\u003e current configuration (e.g. load flags, mode, etc.)\n\n - Name: `CacheEntryNotSuitableError`\n - Code: `-411`\n - Description: `CACHE_ENTRY_NOT_SUITABLE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheEntryNotSuitableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-411);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_ENTRY_NOT_SUITABLE');\nconst err = new Err();\n```\n\n### CacheDoomFailureError\n\n\u003e The disk cache is unable to doom this entry.\n\n - Name: `CacheDoomFailureError`\n - Code: `-412`\n - Description: `CACHE_DOOM_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheDoomFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-412);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_DOOM_FAILURE');\nconst err = new Err();\n```\n\n### CacheOpenOrCreateFailureError\n\n\u003e The disk cache is unable to open or create this entry.\n\n - Name: `CacheOpenOrCreateFailureError`\n - Code: `-413`\n - Description: `CACHE_OPEN_OR_CREATE_FAILURE`\n - Type: cache\n\n```js\nconst err = new chromiumNetErrors.CacheOpenOrCreateFailureError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-413);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CACHE_OPEN_OR_CREATE_FAILURE');\nconst err = new Err();\n```\n\n### InsecureResponseError\n\n\u003e The server's response was insecure (e.g. there was a cert error).\n\n - Name: `InsecureResponseError`\n - Code: `-501`\n - Description: `INSECURE_RESPONSE`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.InsecureResponseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-501);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INSECURE_RESPONSE');\nconst err = new Err();\n```\n\n### NoPrivateKeyForCertError\n\n\u003e An attempt to import a client certificate failed, as the user's key\n\u003e database lacked a corresponding private key.\n\n - Name: `NoPrivateKeyForCertError`\n - Code: `-502`\n - Description: `NO_PRIVATE_KEY_FOR_CERT`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.NoPrivateKeyForCertError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-502);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('NO_PRIVATE_KEY_FOR_CERT');\nconst err = new Err();\n```\n\n### AddUserCertFailedError\n\n\u003e An error adding a certificate to the OS certificate database.\n\n - Name: `AddUserCertFailedError`\n - Code: `-503`\n - Description: `ADD_USER_CERT_FAILED`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.AddUserCertFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-503);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('ADD_USER_CERT_FAILED');\nconst err = new Err();\n```\n\n### InvalidSignedExchangeError\n\n\u003e An error occurred while handling a signed exchange.\n\n - Name: `InvalidSignedExchangeError`\n - Code: `-504`\n - Description: `INVALID_SIGNED_EXCHANGE`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.InvalidSignedExchangeError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-504);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_SIGNED_EXCHANGE');\nconst err = new Err();\n```\n\n### InvalidWebBundleError\n\n\u003e An error occurred while handling a Web Bundle source.\n\n - Name: `InvalidWebBundleError`\n - Code: `-505`\n - Description: `INVALID_WEB_BUNDLE`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.InvalidWebBundleError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-505);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('INVALID_WEB_BUNDLE');\nconst err = new Err();\n```\n\n### TrustTokenOperationFailedError\n\n\u003e A Trust Tokens protocol operation-executing request failed for one of a\n\u003e number of reasons (precondition failure, internal error, bad response).\n\n - Name: `TrustTokenOperationFailedError`\n - Code: `-506`\n - Description: `TRUST_TOKEN_OPERATION_FAILED`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.TrustTokenOperationFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-506);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TRUST_TOKEN_OPERATION_FAILED');\nconst err = new Err();\n```\n\n### TrustTokenOperationSuccessWithoutSendingRequestError\n\n\u003e When handling a Trust Tokens protocol operation-executing request, the system\n\u003e was able to execute the request's Trust Tokens operation without sending the\n\u003e request to its destination: for instance, the results could have been present\n\u003e in a local cache (for redemption) or the operation could have been diverted\n\u003e to a local provider (for \"platform-provided\" issuance).\n\n - Name: `TrustTokenOperationSuccessWithoutSendingRequestError`\n - Code: `-507`\n - Description: `TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST`\n - Type: unknown\n\n```js\nconst err = new chromiumNetErrors.TrustTokenOperationSuccessWithoutSendingRequestError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-507);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST');\nconst err = new Err();\n```\n\n### FtpFailedError\n\n\u003e A generic error for failed FTP control connection command.\n\u003e If possible, please use or add a more specific error code.\n\n - Name: `FtpFailedError`\n - Code: `-601`\n - Description: `FTP_FAILED`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-601);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_FAILED');\nconst err = new Err();\n```\n\n### FtpServiceUnavailableError\n\n\u003e The server cannot fulfill the request at this point. This is a temporary\n\u003e error.\n\u003e FTP response code 421.\n\n - Name: `FtpServiceUnavailableError`\n - Code: `-602`\n - Description: `FTP_SERVICE_UNAVAILABLE`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpServiceUnavailableError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-602);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_SERVICE_UNAVAILABLE');\nconst err = new Err();\n```\n\n### FtpTransferAbortedError\n\n\u003e The server has aborted the transfer.\n\u003e FTP response code 426.\n\n - Name: `FtpTransferAbortedError`\n - Code: `-603`\n - Description: `FTP_TRANSFER_ABORTED`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpTransferAbortedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-603);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_TRANSFER_ABORTED');\nconst err = new Err();\n```\n\n### FtpFileBusyError\n\n\u003e The file is busy, or some other temporary error condition on opening\n\u003e the file.\n\u003e FTP response code 450.\n\n - Name: `FtpFileBusyError`\n - Code: `-604`\n - Description: `FTP_FILE_BUSY`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpFileBusyError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-604);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_FILE_BUSY');\nconst err = new Err();\n```\n\n### FtpSyntaxError\n\n\u003e Server rejected our command because of syntax errors.\n\u003e FTP response codes 500, 501.\n\n - Name: `FtpSyntaxError`\n - Code: `-605`\n - Description: `FTP_SYNTAX_ERROR`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpSyntaxError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-605);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_SYNTAX_ERROR');\nconst err = new Err();\n```\n\n### FtpCommandNotSupportedError\n\n\u003e Server does not support the command we issued.\n\u003e FTP response codes 502, 504.\n\n - Name: `FtpCommandNotSupportedError`\n - Code: `-606`\n - Description: `FTP_COMMAND_NOT_SUPPORTED`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpCommandNotSupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-606);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_COMMAND_NOT_SUPPORTED');\nconst err = new Err();\n```\n\n### FtpBadCommandSequenceError\n\n\u003e Server rejected our command because we didn't issue the commands in right\n\u003e order.\n\u003e FTP response code 503.\n\n - Name: `FtpBadCommandSequenceError`\n - Code: `-607`\n - Description: `FTP_BAD_COMMAND_SEQUENCE`\n - Type: ftp\n\n```js\nconst err = new chromiumNetErrors.FtpBadCommandSequenceError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-607);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('FTP_BAD_COMMAND_SEQUENCE');\nconst err = new Err();\n```\n\n### Pkcs12ImportBadPasswordError\n\n\u003e PKCS #12 import failed due to incorrect password.\n\n - Name: `Pkcs12ImportBadPasswordError`\n - Code: `-701`\n - Description: `PKCS12_IMPORT_BAD_PASSWORD`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.Pkcs12ImportBadPasswordError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-701);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PKCS12_IMPORT_BAD_PASSWORD');\nconst err = new Err();\n```\n\n### Pkcs12ImportFailedError\n\n\u003e PKCS #12 import failed due to other error.\n\n - Name: `Pkcs12ImportFailedError`\n - Code: `-702`\n - Description: `PKCS12_IMPORT_FAILED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.Pkcs12ImportFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-702);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PKCS12_IMPORT_FAILED');\nconst err = new Err();\n```\n\n### ImportCaCertNotCaError\n\n\u003e CA import failed - not a CA cert.\n\n - Name: `ImportCaCertNotCaError`\n - Code: `-703`\n - Description: `IMPORT_CA_CERT_NOT_CA`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.ImportCaCertNotCaError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-703);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('IMPORT_CA_CERT_NOT_CA');\nconst err = new Err();\n```\n\n### ImportCertAlreadyExistsError\n\n\u003e Import failed - certificate already exists in database.\n\u003e Note it's a little weird this is an error but reimporting a PKCS12 is ok\n\u003e (no-op). That's how Mozilla does it, though.\n\n - Name: `ImportCertAlreadyExistsError`\n - Code: `-704`\n - Description: `IMPORT_CERT_ALREADY_EXISTS`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.ImportCertAlreadyExistsError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-704);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('IMPORT_CERT_ALREADY_EXISTS');\nconst err = new Err();\n```\n\n### ImportCaCertFailedError\n\n\u003e CA import failed due to some other error.\n\n - Name: `ImportCaCertFailedError`\n - Code: `-705`\n - Description: `IMPORT_CA_CERT_FAILED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.ImportCaCertFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-705);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('IMPORT_CA_CERT_FAILED');\nconst err = new Err();\n```\n\n### ImportServerCertFailedError\n\n\u003e Server certificate import failed due to some internal error.\n\n - Name: `ImportServerCertFailedError`\n - Code: `-706`\n - Description: `IMPORT_SERVER_CERT_FAILED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.ImportServerCertFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-706);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('IMPORT_SERVER_CERT_FAILED');\nconst err = new Err();\n```\n\n### Pkcs12ImportInvalidMacError\n\n\u003e PKCS #12 import failed due to invalid MAC.\n\n - Name: `Pkcs12ImportInvalidMacError`\n - Code: `-707`\n - Description: `PKCS12_IMPORT_INVALID_MAC`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.Pkcs12ImportInvalidMacError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-707);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PKCS12_IMPORT_INVALID_MAC');\nconst err = new Err();\n```\n\n### Pkcs12ImportInvalidFileError\n\n\u003e PKCS #12 import failed due to invalid/corrupt file.\n\n - Name: `Pkcs12ImportInvalidFileError`\n - Code: `-708`\n - Description: `PKCS12_IMPORT_INVALID_FILE`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.Pkcs12ImportInvalidFileError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-708);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PKCS12_IMPORT_INVALID_FILE');\nconst err = new Err();\n```\n\n### Pkcs12ImportUnsupportedError\n\n\u003e PKCS #12 import failed due to unsupported features.\n\n - Name: `Pkcs12ImportUnsupportedError`\n - Code: `-709`\n - Description: `PKCS12_IMPORT_UNSUPPORTED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.Pkcs12ImportUnsupportedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-709);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PKCS12_IMPORT_UNSUPPORTED');\nconst err = new Err();\n```\n\n### KeyGenerationFailedError\n\n\u003e Key generation failed.\n\n - Name: `KeyGenerationFailedError`\n - Code: `-710`\n - Description: `KEY_GENERATION_FAILED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.KeyGenerationFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-710);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('KEY_GENERATION_FAILED');\nconst err = new Err();\n```\n\n### PrivateKeyExportFailedError\n\n\u003e Failure to export private key.\n\n - Name: `PrivateKeyExportFailedError`\n - Code: `-712`\n - Description: `PRIVATE_KEY_EXPORT_FAILED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.PrivateKeyExportFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-712);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('PRIVATE_KEY_EXPORT_FAILED');\nconst err = new Err();\n```\n\n### SelfSignedCertGenerationFailedError\n\n\u003e Self-signed certificate generation failed.\n\n - Name: `SelfSignedCertGenerationFailedError`\n - Code: `-713`\n - Description: `SELF_SIGNED_CERT_GENERATION_FAILED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.SelfSignedCertGenerationFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-713);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('SELF_SIGNED_CERT_GENERATION_FAILED');\nconst err = new Err();\n```\n\n### CertDatabaseChangedError\n\n\u003e The certificate database changed in some way.\n\n - Name: `CertDatabaseChangedError`\n - Code: `-714`\n - Description: `CERT_DATABASE_CHANGED`\n - Type: certificate-manager\n\n```js\nconst err = new chromiumNetErrors.CertDatabaseChangedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-714);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('CERT_DATABASE_CHANGED');\nconst err = new Err();\n```\n\n### DnsMalformedResponseError\n\n\u003e DNS resolver received a malformed response.\n\n - Name: `DnsMalformedResponseError`\n - Code: `-800`\n - Description: `DNS_MALFORMED_RESPONSE`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsMalformedResponseError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-800);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_MALFORMED_RESPONSE');\nconst err = new Err();\n```\n\n### DnsServerRequiresTcpError\n\n\u003e DNS server requires TCP\n\n - Name: `DnsServerRequiresTcpError`\n - Code: `-801`\n - Description: `DNS_SERVER_REQUIRES_TCP`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsServerRequiresTcpError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-801);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_SERVER_REQUIRES_TCP');\nconst err = new Err();\n```\n\n### DnsServerFailedError\n\n\u003e DNS server failed. This error is returned for all of the following\n\u003e error conditions:\n\u003e 1 - Format error - The name server was unable to interpret the query.\n\u003e 2 - Server failure - The name server was unable to process this query\n\u003e due to a problem with the name server.\n\u003e 4 - Not Implemented - The name server does not support the requested\n\u003e kind of query.\n\u003e 5 - Refused - The name server refuses to perform the specified\n\u003e operation for policy reasons.\n\n - Name: `DnsServerFailedError`\n - Code: `-802`\n - Description: `DNS_SERVER_FAILED`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsServerFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-802);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_SERVER_FAILED');\nconst err = new Err();\n```\n\n### DnsTimedOutError\n\n\u003e DNS transaction timed out.\n\n - Name: `DnsTimedOutError`\n - Code: `-803`\n - Description: `DNS_TIMED_OUT`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsTimedOutError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-803);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_TIMED_OUT');\nconst err = new Err();\n```\n\n### DnsCacheMissError\n\n\u003e The entry was not found in cache or other local sources, for lookups where\n\u003e only local sources were queried.\n\u003e TODO(ericorth): Consider renaming to DNS_LOCAL_MISS or something like that as\n\u003e the cache is not necessarily queried either.\n\n - Name: `DnsCacheMissError`\n - Code: `-804`\n - Description: `DNS_CACHE_MISS`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsCacheMissError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-804);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_CACHE_MISS');\nconst err = new Err();\n```\n\n### DnsSearchEmptyError\n\n\u003e Suffix search list rules prevent resolution of the given host name.\n\n - Name: `DnsSearchEmptyError`\n - Code: `-805`\n - Description: `DNS_SEARCH_EMPTY`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsSearchEmptyError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-805);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_SEARCH_EMPTY');\nconst err = new Err();\n```\n\n### DnsSortError\n\n\u003e Failed to sort addresses according to RFC3484.\n\n - Name: `DnsSortError`\n - Code: `-806`\n - Description: `DNS_SORT_ERROR`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsSortError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-806);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_SORT_ERROR');\nconst err = new Err();\n```\n\n### DnsSecureResolverHostnameResolutionFailedError\n\n\u003e Failed to resolve the hostname of a DNS-over-HTTPS server.\n\n - Name: `DnsSecureResolverHostnameResolutionFailedError`\n - Code: `-808`\n - Description: `DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED`\n - Type: dns\n\n```js\nconst err = new chromiumNetErrors.DnsSecureResolverHostnameResolutionFailedError();\n// or\nconst Err = chromiumNetErrors.getErrorByCode(-808);\nconst err = new Err();\n// or\nconst Err = chromiumNetErrors.getErrorByDescription('DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED');\nconst err = new Err();\n```\n\n\u003c!--END_ERROR_LIST--\u003e\n\n## License\n\nCopyright (c) 2015 - 2020 Max Kueng and contributors\n\nMIT License\n","funding_links":[],"categories":["Library","Tools"],"sub_categories":["Uncategorized","For Electron"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkueng%2Fchromium-net-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxkueng%2Fchromium-net-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkueng%2Fchromium-net-errors/lists"}