returnResponse is common response function. list of params to passed.
- response : Response contract object.
- message: any message you want to passed on response.
- status: status of the response.
- data = object of array you want to passed.
- errors: specially designed for exception handling.
if you want to override the response of your entire application copy and replace with Handler.ts code into your App/Exceptions. and please dont forget to passed returnResponse function path.