Middleware error not shown in strapi admin panel

## Bug report

### Required System information

<!-- Please ensure you are using the Node LTS version (18, 20, or 22) -->
<!-- Strapi v3 is no longer supported, please update to Strapi v4 -->
<!-- If you are reporting a frontend bug please provide error logs after setting STRAPI_ENFORCE_SOURCEMAPS=true in your .env -->
<!-- This environment variable makes frontend errors easier to read and trace -->

- Node.js version: v20.17.0
- NPM version: 10.8.2
- Strapi version: 4.25.9
- Database: postgres
- Operating system: Mac
- Is your project Javascript or Typescript: Typescript

### Describe the bug

I have added 3 different middleware to handle some condition in save, publish and delete the item in collection type. Now in delete all other middleware I have added some condition based on that they through some error these error need to be displayed to users but in case of delete middleware they are shown in case of save and publish these error are return to API in chrome network tab but unable to see to user.
`{
    "data": null,
    "error": {
        "status": 400,
        "name": "ApplicationError",
        "message": "Unable to save page",
        "details": {}
    }
}`

This I am getting in network tab but not on UI

### Steps to reproduce the behavior

1. Add global middleware 
2. Than add this code in middlware `   if(ctx.request.url.includes('actions/publish')) {
       ctx.throw(403, 'Unable to publish');
      return;
     }`
4. try to publish any collection you will see error in network tab not UI


### Expected behavior

The error in network tab should visible to ADMIN UI

### Screenshots

![Screenshot 2024-12-06 at 3 50 35 PM](https://github.com/user-attachments/assets/694415d2-67cb-4b36-8532-cee3ca4a74dd)



