anchor.diff:          zcl_wabap_pretty_printer=>run(
           server->request->get_cdata( ) ) ).
   
  -    ELSEIF lv_path = '' OR lv_path = '/'.
  -* todo, redirect "/wabap" to "/wabap/" ?
  +    ELSEIF lv_full = '/sap/zwabap'.
  +      server->response->set_header_field(
  +        name  = 'Location'
  +        value = lv_full && '/' ).
  +      server->response->set_status( code = 301 reason = '301 redirect' ).
  +    ELSEIF lv_path = ''.
         read_mime( '/index.html' ).
       ELSE.
         read_mime( lv_path ).
  
positive.code:     DATA: lv_reason TYPE string,
            lv_path   TYPE string,
            lv_name   TYPE tadir-obj_name,
            lt_path   TYPE TABLE OF string.
  
      mi_server = server.
  
      lv_path = server->request->get_header_field( '~path_info' ).
  
      DATA(lv_method) = server->request->get_method( ).
  
negative.code:         e_content              = lv_data
          e_mime_type            = lv_mime
          e_content_last_changed = lv_changed
          e_is_folder            = lv_folder
        EXCEPTIONS
          not_found              = 1 ).
      IF sy-subrc = 1 OR lv_folder = abap_true.
        mi_server->response->set_cdata( '404' ).
        mi_server->response->set_status( code = 404 reason = '404' && iv_file ).
        RETURN.
      ENDIF.
  
  