Remove erroneous set of status_code causing a traceback in module uri

Fixes #7416