Skip to content

Commit

Permalink
Generic 422
Browse files Browse the repository at this point in the history
Error code 422 added
  • Loading branch information
FabrizioMoggio authored Nov 12, 2024
1 parent f418aa7 commit b5e7096
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions code/API_definitions/Traffic_Influence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1091,8 +1091,8 @@ components:
value:
status: 403
code: INVALID_TOKEN_CONTEXT
message: the phoneNumber parameter doesn't match the value from the
access token context
message: the phoneNumber parameter doesn't match the value from
the access token context
Generic404:
description: The specified resource was not found
headers:
Expand Down Expand Up @@ -1147,6 +1147,36 @@ components:
can be modified when it is fully implemented and activated.
Please wait for the resource status (state) to be "active"
before trying to update it.
Generic422:
description: Unprocessable Content
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorInfo"
examples:
GENERIC_422_DEVICE_IDENTIFIERS_MISMATCH:
description: Inconsistency between device identifiers not pointing
to the same device
value:
status: 422
code: DEVICE_IDENTIFIERS_MISMATCH
message: Provided device identifiers are not consistent.
GENERIC_422_DEVICE_NOT_APPLICABLE:
description: Service is not available for the provided device
value:
status: 422
code: DEVICE_NOT_APPLICABLE
message: The service is not available for the provided device.
GENERIC_422_UNIDENTIFIABLE_DEVICE:
description: phone number not available neither from "phoneNumber"
or from the access token.
value:
status: 422
code: UNIDENTIFIABLE_DEVICE
message: phone number not defined
Generic500:
description: Server error
headers:
Expand Down

0 comments on commit b5e7096

Please sign in to comment.