Annotation Type ResponseCode

  • @Retention(value=RUNTIME)
    public @interface ResponseCode
    Documents the expected response codes of a REST API.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      int code 
      java.lang.String reason 
    • Element Detail

      • code

        public abstract int code
        The HTTP return code.
      • reason

        public abstract java.lang.String reason
        The reason why this code might be returned.