Class NotAcceptableStatusException

All Implemented Interfaces:
Serializable, ErrorResponse

public class NotAcceptableStatusException extends ResponseStatusException
Exception for errors that fit response status 406 (not acceptable).
Since:
5.0
Author:
Rossen Stoyanchev
See Also:
  • Constructor Details

    • NotAcceptableStatusException

      public NotAcceptableStatusException(String reason)
      Constructor for when the requested Content-Type is invalid.
    • NotAcceptableStatusException

      public NotAcceptableStatusException(List<MediaType> mediaTypes)
      Constructor for when the requested Content-Type is not supported.
  • Method Details