Annotation Interface UnprocessableContent


@Retention(RUNTIME) @Target({METHOD,TYPE,ANNOTATION_TYPE}) @Documented public @interface UnprocessableContent
A convenience annotation that is itself annotated with @ApiResponse.

Methods that carry this annotation will be included in generated openApi documentation with predefined HTTP status code 422. @ResponseBody description will be generated according to ApiError schema description and will use a predefined example.

NOTE: @OkWithResource is processed if annotated method is part of properly configured RestController and springdoc-openapi library.

Since:
1.0
Author:
Ilya Nikolaev
See Also:
  • ApiResponse
  • ResponseEntity
  • RestController
  • ApiError