After some digging, to configure response code for Hugo’s artifacts, although using <meta http-equiv="refresh" content="0;url={{ .URL }}"> is the easiest hinting to crawler for 301 redirect. However, this will cause certain web linters to report bad 302 usage.
As for configuring HTTP response code, one needs to configure the proxy server that is serving it.
@jun52, Not sure exactly which part of thing is offending you. FYI, Hugo is highly recommended for building Gtihub and GitLab pages. It is only natural to ask for Hugo in case the team has native supports for certain configurations.
Appreciate if we stop the passive-aggressive assault. TQ. Thanks for your time on the good side. Peace out.