Search code examples
resteasyquarkusmutiny

What are http codes when returning possibly null Uni or empty Multi in reasteasy?


Where can I find docs for the http codes when returning a possibly null or empty Uni/Multi?

I have found out that returning a possibly null Uni returns http status 204 (no content) when using a get request such as /users/123. Shouldn't this return 404? How would I check the Uni or Multi before returning results? I'm using resteasy


Solution

  • I can't seem to find it now, but this is standard JAX-RS behavior (of which RESTEasy is an implementation).