anchor.diff:          end,
       case InitSession of
           error ->
  -            g_ctx:reply(500, [], <<"">>);
  +            g_ctx:reply(500, [{<<"connection">>, <<"close">>}], <<"">>);
           ok ->
               try
                   NewReq = multipart(Req, []),
  
positive.code:                     % because retries are not stable
  %%                    % Return 204 - resumable will retry the upload
  %%                    g_ctx:reply(204, [], <<"">>)
                      g_ctx:reply(500, [], <<"">>)
              end
      end,
      g_ctx:finish().
  
negative.code:                 g_ctx:reply(200, [], <<"">>)
              catch
                  throw:{missing_param, _} ->
                      g_ctx:reply(500, [{<<"connection">>, <<"close">>}], <<"">>);
                  throw:stream_file_error ->
                      g_ctx:reply(500, [{<<"connection">>, <<"close">>}], <<"">>);
                  Type:Message ->
                      ?error_stacktrace("Error while processing file upload "
                      "from user ~p - ~p:~p",
  