-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15a8c1e
commit 6c306e8
Showing
8 changed files
with
105 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
specs/advanced-personalization/common/schemas/ErrorResponses.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
badRequest: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 400 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- Invalid request body | ||
|
||
badUserID: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 400 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- Invalid userID format | ||
|
||
genericNotFound: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 404 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- Not Found | ||
|
||
genericUnprocessableEntity: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 422 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- Unprocessable Entity | ||
|
||
internalServerError: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 500 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- Internal Server Error | ||
|
||
invalidUserID: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 422 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- UserID must contain only alphanumeric, equal, plus, slash, hyphen, or underscore characters, and be between 1 and 129 characters long | ||
|
||
unauthorized: | ||
type: object | ||
properties: | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
enum: | ||
- 401 | ||
message: | ||
type: string | ||
description: Details about the response, such as error messages. | ||
enum: | ||
- Unauthorized |