@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) public @interface StatusCode
@StatusCode(200) or @StatusCode(204) would be applied
according to the return type of the annotated method. If the return type is void or Void,
@StatusCode(204) would be applied. Otherwise, @StatusCode(200) would be applied.| Modifier and Type | Required Element and Description |
|---|---|
int |
value
A default HTTP status code of a response produced by an annotated HTTP service.
|
Copyright © 2020 LeanCloud. All rights reserved.