Errors

todoless uses the PocketBase error envelope. Custom /api endpoints return JSON with at least a message field. In general:

{"code": 400, "message": "Something went wrong while performing a request.", "status": 400, "data": {}}
{"message": "Validation failed."}

Common HTTP status codes

CodeMeaningTypical cause
400Bad requestMissing or invalid fields (validation failure)
401UnauthenticatedMissing or invalid session token or API token
403ForbiddenAuthenticated but not permitted (wrong scope, not the owner)
404Not foundUnknown path, or the resource is hidden from you (owner-only resources return 404)
429Too many requestsRate limit reached
500Server errorUnexpected failure
503Service unavailableA dependency is not configured (for example a webhook secret)

Validation errors include a data map with per-field details, e.g. data.password.message. The examples in this documentation are illustrative.