FastUI
FastUI copied to clipboard
Returning a `201` raises an error in the ui
While generating a sign-up flow, i think it is common to return a 201
to signal user created. However, the app catches that as an exception and raised an alert toast.
Example:
@router.post(
"/register",
response_model=user_schema,
status_code=status.HTTP_201_CREATED,
name="register:register",
)
async def register(
):
...
Duplicate of #225.