HTTP status 403. Only the Affinity app gets this code.
The signed-in person has no NPI on their profile, so they cannot sign as themselves.
Recovery
Add your NPI in the app settings, or name the prescriber: send prescriber with their first name, last name and NPI.
Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.