Configuration should be done using ``from invenio.base.globals import cfg`` + ``cfg['MESSAGES_STATUS_CODE']`` which is a short hand for ``from flask import current_app`` + ``current_app.config['MESSAGES_STATUS_CODE']``