Skip to content

Bad argument (400) ​

https://rowstile.dev/problems/bad-argument is the type of the problem body (RFC 9457) the SDKs answer with when the database says a call lacks something it needs, or has a value out of range: an access request without a reason, a negative page size. It is the user's to fix, not the server's failure.

json
{
  "type": "https://rowstile.dev/problems/bad-argument",
  "title": "Bad Request",
  "status": 400,
  "detail": "say why you need it",
  "code": "AZ710"
}
  • detail: the database's words, which say what is missing or wrong.
  • code: AZ710, a missing or wrong argument.

Where it comes from: rowstile.fastapi (FastAPI), route() and action() in @rowstile/next (Next.js) and problemOf(e) for any other framework (Node). The routes authzRoutes() makes for @rowstile/react answer with it too: POST request without a reason. useAccessRequest then fails with the database's words.