How can we use other property name instead of "error" to return 400 error response

Feature(s) impacted

Smart actions

Observed behavior

Its shows a “Bad Request” message instead of an exact message if I use the “message” property instead of “error”.

Expected behavior

It should allow returning an error message with other property as well.


  • Package Version: 8.3 (forest-express-sequelize)
  • Express Version: 4.17.1
  • Sequelize Version: 6.6.5
  • Database Dialect: MySql
  • Database Version: 5.7.24