Retrying a Request with Updated Headers Based on Error Response

How would I retry a request if it fails with a specific status but update the request's headers from data within the error? i.e. csrf
Was this page helpful?