Skip to content

Commit 60b27da

Browse files
committed
Add additional error codes
1 parent 610c433 commit 60b27da

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

authzed/api/v1/error_reason.proto

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,43 @@ enum ErrorReason {
314314
// }
315315
// }
316316
ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST = 21;
317+
318+
// The request's specified limit is too large.
319+
//
320+
// Example of an ErrorInfo:
321+
//
322+
// {
323+
// "reason": "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT",
324+
// "domain": "authzed.com",
325+
// "metadata": {
326+
// "limit_provided": "525",
327+
// "maximum_limit_allowed": "500",
328+
// }
329+
// }
330+
ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT = 22;
331+
332+
// The request failed because the provided filter was invalid in some way.
333+
//
334+
// Example of an ErrorInfo:
335+
//
336+
// {
337+
// "reason": "ERROR_REASON_INVALID_FILTER",
338+
// "domain": "authzed.com",
339+
// "metadata": {
340+
// "filter": "...",
341+
// }
342+
// }
343+
ERROR_REASON_INVALID_FILTER = 23;
344+
345+
// The request failed because too many concurrent updates were attempted
346+
// against the in-memory datastore.
347+
//
348+
// Example of an ErrorInfo:
349+
//
350+
// {
351+
// "reason": "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES",
352+
// "domain": "authzed.com",
353+
// "metadata": {}
354+
// }
355+
ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES = 24;
317356
}

0 commit comments

Comments
 (0)