Package io.goobi.viewer.api.rest.exceptions


package io.goobi.viewer.api.rest.exceptions
JAX-RS exception mappers that translate application and web exceptions into structured HTTP error responses for the REST API.
  • Classes
    Class
    Description
    JAX-RS exception mapper that converts ContentLibException instances to HTTP error responses with appropriate status codes.
     
    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.
    JAX-RS exception mapper that converts RestApiException instances to JSON error responses with appropriate HTTP status codes.
    JAX-RS exception mapper that catches general exceptions encountered during REST API calls and creates a JSON-formatted error response.