I used this link to include the previous state and error details in the "catch" block for a state in AWS step function : https://docs.aws.amazon.com/step-functions