1

I just use following code to response a 404:Not found.

return Response.status(Status.NOT_FOUND).build();

While the response always with following body. How can i remove them?

enter image description here

Holp anyone can help me? Thank you so much!

olexd
  • 1,360
  • 3
  • 13
  • 26
Stacy Chen
  • 11
  • 2
  • http://linux-sxs.org/internet_serving/c581.html – Quy Tang Jul 22 '16 at 06:36
  • 2
    Possible duplicate of [Disable all default HTTP error response content in Tomcat](http://stackoverflow.com/questions/794329/disable-all-default-http-error-response-content-in-tomcat) – raphaëλ Jul 22 '16 at 06:40
  • 1
    Possible duplicate of [JAX-RS — How to return JSON and HTTP status code together?](http://stackoverflow.com/questions/4687271/jax-rs-how-to-return-json-and-http-status-code-together) – JanTheGun Jul 22 '16 at 06:50

0 Answers0