Customize the error message body

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

How to customize the message parameter of response received for any API call from strapi.

eg: {“statusCode”:400,“error”:“Bad Request”,“message”:“Invalid input data. Please verify unique constraints”}
Want to costomize message here, as It is not particular that which field should be unique

1 Like

Very opaque error message and difficult to address

Longer discussion here: