code: public static Action status(final HttpStatus status) {
          return new Action(input -> {
              input.setStatus(status);
              return input;
          });
      }
docs: Sets HTTP status to response