Annotation Type ResponseStatus


@Retention(CLASS) @Target(METHOD) public @interface ResponseStatus

The status this method answers with when it returns normally.

Without it a method that returns a value answers 200, and a void method answers 204.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The HTTP status code.
  • Element Details

    • value

      int value
      The HTTP status code.