Hello!

I am using Apache CXF 3.0.2 for a ReSTful server application and I need to
be able to send javax.ws.rs.core.Responses including custom non-HTTP status
codes. These status codes are greater than 599, which is rejected by
org.apache.cxf.jaxrs.impl.ResponseBuilderImpl.status() (line 77 checks, if
the status code is < 100 || > 599).

The HTTP specification does not forbid sending custom status codes like
e.g. 913 which do not belong to the standard classes (1xx - 5xx).

I already tried a lot to solve this problem by configuring CXF
(interceptors, filters), but nothing helped. ResponseBuilderImpl is
implemented as "final" and I cannot find a workaround to solve this
problem.
Is there a way to let CXF send me a custom status code?

Thanx a lot for any help.
Best regards,
Henning

Reply via email to