Added data and respons objects to error callbacks

No need to publish right now. This can go with the next feature release.