You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error responses might provide need a different set of media-types for the response, e.g. a resource the provides an image of types image/jpg and image/png might want to return a 401 unauthorized with the media types text/plain, text/html or application/json instead.
In addition liberators handler see a negotiated media type after successful content negotiation. That means that for handlers like handle-unauthorized or handle-service-not-available cannot provide a matching response without additional work.
The text was updated successfully, but these errors were encountered:
@Christopher-Bui I propose to add another declaration in the resource definition for the media types of error responses and to negotiate the content type when necessary. As a default available-media-types et. al. would be used.
Error responses might provide need a different set of media-types for the response, e.g. a resource the provides an image of types
image/jpg
andimage/png
might want to return a401 unauthorized
with the media typestext/plain
,text/html
orapplication/json
instead.In addition liberators handler see a negotiated media type after successful content negotiation. That means that for handlers like
handle-unauthorized
orhandle-service-not-available
cannot provide a matching response without additional work.The text was updated successfully, but these errors were encountered: