/
exceptions.en.yml
53 lines (53 loc) · 1.88 KB
/
exceptions.en.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
en:
common:
exceptions:
defaults: &defaults
# title: required always
# detail: optional, if not provided it will default to title
# code: required always, must be unique to a specific title - no two code and titles can overlap
# status: require always, corresponds to the HTTP Status code
# links: optional, could contain an 'about' link to further details
# source: optional, an object containing references to the source of the error (pointer to json in validation)
# meta: optional, contains information suitable for debugging, VISIBLE IN PRODUCTION
# sentry_type: optional, defaults to 'error', supported values = debug, info, warn, error, fatal, and 'none'
detail: ~
links: ~
source: ~
meta: ~
sentry_type: 'error'
backend_service_exception: &external_defaults
<<: *defaults
title: 'Operation failed' # To be used when no external minor code is mappable
code: 'VA900'
status: 400
LOROTA-API_401:
<<: *external_defaults
title: Authentication Error
code: 'LOROTA-API_401'
detail: 'Authentication Error'
status: 401
sentry_type: none
CIE-VETS-API_404:
<<: *external_defaults
title: Data Not Found
code: 'CIE-VETS-API_404'
detail: 'Data Not Found'
status: 404
CIE-VETS-API_410:
<<: *external_defaults
title: Data Gone
code: 'CIE-VETS-API_410'
detail: 'Retry Attempt Exceeded'
status: 410
CHIP-API_404:
<<: *external_defaults
title: 'Not Found'
code: 'CHIP-API_404'
detail: 'Not Found'
status: 404
CHIP-API_500:
<<: *external_defaults
title: 'Internal Server Error'
code: 'CHIP-API_500'
detail: 'Internal Server Error'
status: 500