ExpectedResponses Interface
Implements
public interface ExpectedResponses
implements Annotation
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);
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract int[] |
value()
The status code that will trigger that an error of type error |
Method Details
value
public abstract int[] value()
The status code that will trigger that an error of type errorType should be returned.
Returns: