public interface StatusToXContent extends ToXContent
RestStatus for their response. Usually should be
implemented by top level responses sent back to users from REST endpoints.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
RestStatus |
status()
Returns the REST status to make sure it is returned correctly
|
toXContentRestStatus status()