title: Handling errors with redux-toolkit
body: <p>The information about the error in my case sits deeply in the response, and I'm trying to move my project to <code>redux-toolkit</code>. This is how it used to be:</p>
  <pre><code>catch(e) {
    let warning
    switch (e.response.data.error.message) { 
      ...
    }
  }
  </code></pre>
  <p>The problem is that <code>redux-toolkit</code> doesn't put that data in the <code>rejected</code> action creator and I have no access to the error message, it puts his message instead of the initial one:</p>
  <p><a href="https://i.stack.imgur.com/fFjxv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fFjxv.png" alt="enter image description here" /></a></p>
  <p>While the original response looks like this:</p>
  <p><a href="https://i.stack.imgur.com/i2JUD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i2JUD.png" alt="enter image description here" /></a></p>
  <p>So how can I retrieve that data?</p>