Updating dispatch error listener to calculate API status after routing, rather than before.
Adding more configurations and documenting them.