Skip to content

Commit ede3b89

Browse files
Merge pull request #242224 from amagginetti/main
Update error code language
2 parents b9bdfac + 3f7e65c commit ede3b89

File tree

1 file changed

+35
-12
lines changed

1 file changed

+35
-12
lines changed

articles/communication-services/tutorials/end-of-call-survey-tutorial.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,44 @@ call.feature(Features.CallSurvey).submitSurvey({
9393

9494

9595

96-
<!-- ## Find different types of errors
96+
## Find different types of errors
97+
98+
9799

98100
### Failures while submitting survey:
99101

100-
API will return the error messages when data validation failed or unable to submit the survey.
101-
- At least one survey rating is required.
102-
- In default scale X should be 1 to 5. - where X is either of
103-
- overallRating.score
104-
- audioRating.score
105-
- videoRating.score
106-
- ScreenshareRating.score
107-
- ${propertyName}: ${rating.score} should be between ${rating.scale?.lowerBound} and ${rating.scale?.upperBound}. ;
108-
- ${propertyName}: ${rating.scale?.lowScoreThreshold} should be between ${rating.scale?.lowerBound} and ${rating.scale?.upperBound}. ;
109-
- ${propertyName} lowerBound: ${rating.scale?.lowerBound} and upperBound: ${rating.scale?.upperBound} should be between 0 and 100. ;
110-
- event discarded [ACS failed to submit survey, due to network or other error] -->
102+
The API will return the following error messages if data validation fails or the survey can't be submitted.
103+
104+
- At least one survey rating is required.
105+
106+
- In default scale X should be 1 to 5. - where X is either of:
107+
- overallRating.score
108+
- audioRating.score
109+
- videoRating.score
110+
- ScreenshareRating.score
111+
112+
- \{propertyName\}: \{rating.score\} should be between \{rating.scale?.lowerBound\} and \{rating.scale?.upperBound\}.
113+
114+
- \{propertyName\}: \{rating.scale?.lowScoreThreshold\} should be between \{rating.scale?.lowerBound\} and \{rating.scale?.upperBound\}.
115+
116+
- \{propertyName\} lowerBound: \{rating.scale?.lowerBound\} and upperBound: \{rating.scale?.upperBound\} should be between 0 and 100.
117+
118+
- Please try again [ACS failed to submit survey, due to network or other error].
119+
120+
### We will return any error codes with a message.
121+
122+
- Error code 400 (bad request) for all the error messages except one.
123+
124+
```
125+
{ message: validationErrorMessage, code: 400 }
126+
```
127+
128+
- One 408 (timeout) when event discarded:
129+
130+
```
131+
{ message: "Please try again.", code: 408 }
132+
```
133+
111134

112135
## All possible values
113136

0 commit comments

Comments
 (0)