The workflow HTTP Request action currently does not support non-200 responses and instead breaks the workflow, see HTTP Response Fails Workflow Execution - IdentityNow (IDN) / IDN Discussion and Questions - SailPoint Developer Community Forum
There’s an idea open for this to be handled gracefully here: https://ideas.sailpoint.com/ideas/GOV-I-2204 which you can vote on to have it prioritised.