#Extending Error Handler
In this section we'll create our own error handler for exhancer.
#Creating a custom error
Having one custom error in our application is a good practice.
This is the error that we are going to throw for any unsuccessful request.
#Creating error handler
1
2
3
4
5
6
7
8
Every error handler must return a object which must have a message
property and status
property.
And yes you have your error handler ready to go !!.