Package com.azure.core.annotation
Annotation Type ExpectedResponses
Annotation to annotate list of HTTP status codes that are expected in response from a REST endpoint.
Example:
@ExpectedResponses({200, 201}) @Post("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/" + "hubs/{hubName}/images/getEntityTypeImageUploadUrl") void getUploadUrlForEntityType(@PathParam("resourceGroupName") String resourceGroupName, @PathParam("hubName") String hubName, @PathParam("subscriptionId") String subscriptionId, @BodyParam("application/json") RequestBody parameters);
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionint[]
The status code that will trigger that an error of type errorType should be returned.
-
Element Details
-
value
int[] valueThe status code that will trigger that an error of type errorType should be returned.- Returns:
- The status code that will trigger than an error of type errorType should be returned.
-