@@ -2,96 +2,54 @@ badRequest:
22 type : object
33 properties :
44 status :
5- type : integer
6- description : HTTP status code.
7- enum :
8- - 400
5+ $ref : ' ./ErrorCodes.yml#/errorCodeBadRequest'
96 message :
10- type : string
11- description : Details about the response, such as error messages.
12- enum :
13- - Invalid request body
7+ $ref : ' ./ErrorMessages.yml#/badRequest'
148
159badUserID :
1610 type : object
1711 properties :
1812 status :
19- type : integer
20- description : HTTP status code.
21- enum :
22- - 400
13+ $ref : ' ./ErrorCodes.yml#/badRequest'
2314 message :
24- type : string
25- description : Details about the response, such as error messages.
26- enum :
27- - Invalid userID format
15+ $ref : ' ./ErrorMessages.yml#/badUserID'
2816
29- genericNotFound :
17+ unauthorized :
3018 type : object
3119 properties :
3220 status :
33- type : integer
34- description : HTTP status code.
35- enum :
36- - 404
21+ $ref : ' ./ErrorCodes.yml#/unauthorized'
3722 message :
38- type : string
39- description : Details about the response, such as error messages.
40- enum :
41- - Not Found
23+ $ref : ' ./ErrorMessages.yml#/unauthorized'
4224
43- genericUnprocessableEntity :
25+ genericNotFound :
4426 type : object
4527 properties :
4628 status :
47- type : integer
48- description : HTTP status code.
49- enum :
50- - 422
29+ $ref : ' ./ErrorCodes.yml#/notFound'
5130 message :
52- type : string
53- description : Details about the response, such as error messages.
54- enum :
55- - Unprocessable Entity
31+ $ref : ' ./ErrorMessages.yml#/genericNotFound'
5632
57- internalServerError :
33+ genericUnprocessableEntity :
5834 type : object
5935 properties :
6036 status :
61- type : integer
62- description : HTTP status code.
63- enum :
64- - 500
37+ $ref : ' ./ErrorCodes.yml#/unprocessableEntity'
6538 message :
66- type : string
67- description : Details about the response, such as error messages.
68- enum :
69- - Internal Server Error
39+ $ref : ' ./ErrorMessages.yml#/genericUnprocessableEntity'
7040
7141invalidUserID :
7242 type : object
7343 properties :
7444 status :
75- type : integer
76- description : HTTP status code.
77- enum :
78- - 422
45+ $ref : ' ./ErrorCodes.yml#/unprocessableEntity'
7946 message :
80- type : string
81- description : Details about the response, such as error messages.
82- enum :
83- - UserID must contain only alphanumeric, equal, plus, slash, hyphen, or underscore characters, and be between 1 and 129 characters long
47+ $ref : ' ./ErrorMessages.yml#/invalidUserID'
8448
85- unauthorized :
49+ internalServerError :
8650 type : object
8751 properties :
8852 status :
89- type : integer
90- description : HTTP status code.
91- enum :
92- - 401
53+ $ref : ' ./ErrorCodes.yml#/internalServerError'
9354 message :
94- type : string
95- description : Details about the response, such as error messages.
96- enum :
97- - Unauthorized
55+ $ref : ' ./ErrorMessages.yml#/internalServerError'
0 commit comments