anchor.diff:                      % because retries are not stable
   %%                    % Return 204 - resumable will retry the upload
   %%                    g_ctx:reply(204, [], <<"">>)
  -                    g_ctx:reply(500, [], <<"">>)
  +                    g_ctx:reply(500, [{<<"connection">>, <<"close">>}], <<"">>)
               end
       end,
       g_ctx:finish().
  
positive.code:         end,
      case InitSession of
          error ->
              g_ctx:reply(500, [], <<"">>);
          ok ->
              try
                  NewReq = multipart(Req, []),
  
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",
  