Making is possible to have success/error callbacks for amplify.request to pass in more than just a data and status variable