:
        body = json.loads(bytes(result.response.body))
        return JSONResponse(body, status_code=result.response.status_code)

    raise Exception(&#34;Should never come here&#34;)</code></pre>
</details>
</section>
<section>
</section>
<section>
</section>
<section>
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="supertokens_python.recipe.session.framework.fastapi.session_exception_handler"><code class="name flex">
<span>async def <span class="ident">session_exception_hand