CRAFTERCMS-435: Improvement in crafter security provider to manage referent or just response status code