aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nwc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index 1f3e7444..aa69ae75 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -134,7 +134,7 @@ const handle = (method, params, ev, app, user) =>
if (spent + amount > max_amount) {
warn("budget exceeded", pubkey, user?.username, spent, amount, max_amount);
return error({
- code: "INTERNAL",
+ code: "QUOTA_EXCEEDED",
message: `Budget exceeded: ${spent + amount} of ${max_amount}`,
});
}