@Documented @Target(value={PARAMETER,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface ResponseStatus
Annotation used to denote an HTTP response status code.
Can be used in the following locations:
On server-side REST, this annotation can be applied to method parameters to identify them as an HTTP response value.
The parameter type must be Value
with a parameterized type of Integer
.
On @Response
-annotated classes, this method can be used to denote an HTTP status code on a response.
The method being annotated must be public and return a numeric value.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.