code: public static RedirectionAction buildFormPostContentAction(final WebContext context, final String content) {
          if (ContextHelper.isPost(context) && useModernHttpCodes) {
              return new TemporaryRedirectAction(content);
          } else {
              return new OkAction(content);
          }
      }
docs: Build the appropriate redirection action for a content which is a form post.
  
  @param context the web context
  @param content the content
  @return the appropriate redirection action