11cb0ef41Sopenharmony_ci# MockErrors 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciUndici exposes a variety of mock error objects that you can use to enhance your mock error handling. 41cb0ef41Sopenharmony_ciYou can find all the mock error objects inside the `mockErrors` key. 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci```js 71cb0ef41Sopenharmony_ciimport { mockErrors } from 'undici' 81cb0ef41Sopenharmony_ci``` 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci| Mock Error | Mock Error Codes | Description | 111cb0ef41Sopenharmony_ci| --------------------- | ------------------------------- | ---------------------------------------------------------- | 121cb0ef41Sopenharmony_ci| `MockNotMatchedError` | `UND_MOCK_ERR_MOCK_NOT_MATCHED` | The request does not match any registered mock dispatches. | 13