Change status code returned on identity error from 401 to 409