FastUI icon indicating copy to clipboard operation
FastUI copied to clipboard

Returning a `201` raises an error in the ui

Open tim-x-y-z opened this issue 11 months ago • 1 comments

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(
):
...

image

tim-x-y-z avatar Mar 12 '24 15:03 tim-x-y-z

Duplicate of #225.

samuelcolvin avatar Mar 12 '24 21:03 samuelcolvin