aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/src/errors.ts
blob: 20c35514f56d07372046417836734040090f611b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { examples } from './examples';
export const errorResponses = {
    '400': {
        description: 'Validation error',
        content: {
            'application/json': {
                schema: { $ref: '#/components/schemas/relayerApiErrorResponseSchema' },
                example: examples.validationError,
            },
        },
    },
    '404': {
        description: 'Not found',
    },
    '429': {
        description: 'Too many requests - Rate limit exceeded',
    },
    '500': {
        description: 'Internal Server Error',
    },
    '501': {
        description: 'Not implemented.',
    },
};