Class NotAllowedExceptionMapper

java.lang.Object
io.goobi.viewer.api.rest.exceptions.NotAllowedExceptionMapper
All Implemented Interfaces:
ExceptionMapper<NotAllowedException>

@Provider public class NotAllowedExceptionMapper extends Object implements ExceptionMapper<NotAllowedException>
Maps NotAllowedException (HTTP 405) to a JSON response that includes the required Allow header listing supported HTTP methods for the requested path, as mandated by RFC 9110 ยง15.5.6. The more general WebApplicationExceptionMapper would otherwise discard the Allow header embedded in the exception's response.