I want to customize 404 response, that the server (not me) throws whenever it can't find a requested resource, (or throw a customized WebApplicationException myself, if it's possible to test if a requested resource is present in one app? probably a List of resources is stored somewhere?). please don't refer me to solutions that suggest to extend WebApplicationException, because even doing so, my problem is when to throw it?, when resource is not found! but how to express this need in jersey framework
相关问题
- org.glassfish.jersey.server.ContainerException: ja
- Wordpress change all 404 to 410 error code
- 404 error when switching between stores when in a
- What does jersey service return if @Produces annot
- Why is jQuery ajax get returning a 404 Not found e
相关文章
- Zurb Foundation 5, modernizr not found
- JAX-RS (Jersey) ExceptionMapper - @Context injecti
- hapi.js - 404 route VS static files route
- What is the Jersey 2 replacement for ResourceConte
- JAX-RS with Jersey not working in JBoss AS
- JAX-RS Jersey Read entity with Content-Type “*”
- Pylons - Changing the regular 404 Not Found page t
- Status Code Exception (com.google.gwt.user.client.
Jersey throws
javax.ws.rs.NotFoundException
when it cannot find an endpoint. Just use an exception mapper to transform it to a response of your choice: