aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/src/examples/errors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sra-api/src/examples/errors.ts')
-rw-r--r--packages/sra-api/src/examples/errors.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/sra-api/src/examples/errors.ts b/packages/sra-api/src/examples/errors.ts
new file mode 100644
index 000000000..81f29d81c
--- /dev/null
+++ b/packages/sra-api/src/examples/errors.ts
@@ -0,0 +1,11 @@
+export const validationError = {
+ code: 100,
+ reason: 'Validation failed',
+ validationErrors: [
+ {
+ field: 'networkId',
+ code: 1006,
+ reason: 'Network id 42 is not supported',
+ },
+ ],
+};