Skip to content

Commit 5a50e6f

Browse files
committed
add error codes
1 parent 838172f commit 5a50e6f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/cognitive-services/Computer-vision/Vision-API-How-to-Topics/HowToCallVisionAPI.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@ description.tags[] | `string` | The list of tags. If there is insufficient
112112
description.captions[].text | `string` | A phrase describing the image.
113113
description.captions[].confidence | `number` | The confidence score for the phrase.
114114

115+
### Error codes
116+
117+
See the following list of possible errors and their causes:
118+
119+
* 400
120+
* InvalidImageUrl - Image URL is badly formatted or not accessible.
121+
* InvalidImageFormat - Input data is not a valid image.
122+
* InvalidImageSize - Input image is too large.
123+
* NotSupportedVisualFeature - Specified feature type is not valid.
124+
* NotSupportedImage - Unsupported image, e.g. child pornography.
125+
* InvalidDetails - Unsupported `detail` parameter value.
126+
* NotSupportedLanguage - The requested operation is not supported in the language specified.
127+
* BadArgument - Additional details are provided in the error message.
128+
* 415 - Unsupported media type error. The Content-Type is not in the allowed types:
129+
* For an image URL: Content-Type should be application/json
130+
* For a binary image data: Content-Type should be application/octet-stream or multipart/form-data
131+
* 500
132+
* FailedToProcess
133+
* Timeout - Image processing timed out.
134+
* InternalServerError
115135

116136
## Next steps
117137

0 commit comments

Comments
 (0)