# Unable to display a custom error message when overriding the default bulk delete route

**URL:** <https://community.forestadmin.com/t/unable-to-display-a-custom-error-message-when-overriding-the-default-bulk-delete-route/4538>\
**Category:** Help me!\
**Created:** [April 25, 2022, 12:43pm UTC](https://community.forestadmin.com/t/unable-to-display-a-custom-error-message-when-overriding-the-default-bulk-delete-route/4538 "2022-04-25T12:43:13Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![KamilH](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamilh/32/4363_2.png) [@KamilH](https://community.forestadmin.com/u/KamilH)\
**Post date:** [April 28, 2022, 6:16pm UTC](https://community.forestadmin.com/t/unable-to-display-a-custom-error-message-when-overriding-the-default-bulk-delete-route/4538/26 "2022-04-28T18:16:44Z")

</div>

It doesn’t working either 😕

EDIT: OK, I’ve got it working using both your handler and the next() function.  
But what is weird is that it shouldn’t require the next() function to be used, but I could send it using the `response` variable, retrieved during the Express request.  
See: [Overriden routes error management](https://community.forestadmin.com/t/overriden-routes-error-management/4487)

Is there any way not to use the next() function but this `response.status(400).send('error message');` ?  
Because it seems working for @JeremyV

Using the errorHandler middleware prevents me from sending success custom message.

---

_[View the full topic](https://community.forestadmin.com/t/unable-to-display-a-custom-error-message-when-overriding-the-default-bulk-delete-route/4538)._
