• locuester@lemmy.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    17 hours ago

    I would do a 400 (Bad Request). Then, with varying amounts of detail depending on the scale of the project and the framework capability, the response body would be something like: { “error”:true, “reason”: “validation”, “detail”: “user id should be numeric” }