           {:more, :undefined} ->
             {:more, buffer}
         end
+
+      {:ok, {:http_response, _, _, _}, _rest} ->
+        [invalid_line, _rest] = String.split(buffer, ~r/\R/, parts: 2)
+        {:error, {:invalid_line, invalid_line}}
 
       {:ok, {:http_error, invalid_line}, _rest} ->
         {:error, {:invalid_line, invalid_line}}

      {:error, {:invalid_line, "!!!BAD_HEADER\r\n"}}

      # Test connection status is extracted
      iex> "GET /path?qs HTTP/1.1\r\nhost: example.com\r\nconnection: close\r\naccept: text/plain\r\n\r\n"
      ...> |> Raxx.HTTP1.parse_request(scheme: :http)
      {:ok,
       {%Raxx.Request{

          headers: [{"accept", "text/plain"}],
          method: :GET,
          mount: [],
          path: [],
          query: nil,
          raw_path: "/",
          scheme: :http
        }, :keepalive, {:complete, ""}, ""}}

