Commit 5dde00a3 authored by garciay's avatar garciay
Browse files

Merge with STF549_NG112

parent 5e231cd7
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -101,8 +101,8 @@ module LibItsHttp_Templates {
          body          := p_body
      } // End of template mw_http_response_ok
      
      template (present) Response mw_http_response_ko(
                                                      template (present) HttpMessageBody p_body  := ?,
      template Response mw_http_response_ko(
                                            template HttpMessageBody p_body  := *,
                                            template (present) HeaderLines p_header := ?
      ) := {
          version_major := 1,
@@ -111,6 +111,14 @@ module LibItsHttp_Templates {
          statustext    := ?,
          header        := p_header,
          body          := p_body
      } // End of template mw_http_response_ko
      
      template Response mw_http_response_404_not_found(
                                                       template HttpMessageBody p_body  := *,
                                                       template (present) HeaderLines p_header := ?
      ) modifies mw_http_response_ko := {
          statuscode    := 404,
          statustext    := ? // TODO Add pattern for not found
      } // End of template mw_http_response_ok
      
    } // End of group http_responses