---
source_url: https://www.pubnub.com/docs/sdks/redux/api-reference/errors
title: Errors API
updated_at: 2026-06-18T11:28:33.145Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# Errors API

The Redux framework provides listeners that monitor PubNub error handling and status events, and dispatch actions to update the store accordingly. Your application should respond to these actions to display an error message to the user and to optionally retry the operation.

## Reducers

The PubNub Redux framework provides reducers your app can implement that respond to various actions that update the store. To track the state of a set of objects in the store, combine the reducers you want into the `rootReducer` for your app.

### createErrorStatusReducer

`createErrorStatusReducer` instantiates a reducer in the store that responds to actions dispatched to update the state in the store when the listener receives an Error Status event.

```tsx
createErrorStatusReducer();
```

## Listeners

The PubNub Redux framework includes listeners that monitor PubNub events from the server and dispatch corresponding actions. All listeners are automatically invoked if your app registers the combined PubNub listener. You can register only specific listeners, or implement your own combine listeners function.

### createErrorStatusListener

`createErrorStatusListener` registers a listener in the store that monitors Error Status events.

A sample implementation of a single listener:

```tsx
pubnub.addListener(createErrorStatusListener(store.dispatch));
```

## Commands

The PubNub Redux framework doesn't contain any built-in commands to dispatch an error status event action.

## Reference

For additional information, refer to the following pages:

* [PubNub Error Handling and Status Events (PubNub API reference)](https://www.pubnub.com/docs/general/resources/troubleshooting)
* [How to enable logging (JavaScript SDK Troubleshooting Guide)](https://www.pubnub.com/docs/sdks/javascript/logging)