class StatusFilter implements ContainerResponseFilter {

    @Override
    public void filter(ContainerRequestContext requestContext,
                       ContainerResponseContext responseContext)
            throws IOException {<FILL_FUNCTION_BODY>}

    @NameBinding
    @Retention(RetentionPolicy.RUNTIME)
    public @interface Status {

        int OK = 200;
        int CREATED = 201;
        int ACCEPTED = 202;

        int value();
    }
}

        if (responseContext.getStatus() == 200) {
            for (Annotation i : responseContext.getEntityAnnotations()) {
                if (i instanceof Status) {
                    responseContext.setStatus(((Status) i).value());
                    break;
                }
            }
        }
    
<no_super_class>