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