Are you expected to know all http status codes?

I just got an interview and I was asked different http status and what their meaning was.

Besides the typical ones , 200, 203, 300, 404, 500, I couldn’t come up with anything because you can look this up and shouldn’t remember it by heart. That would be a waste of mental capacity IMO. Or am I wrong? Is it expected to know these things as a web developer?


Source link

Debugging HTTP headers in Hugo

Hugo can add all headers, including security headers, on the local server ( when you type hugo server in the terminal). It’s pretty helpful for the debug, as some can break your website.

I had a problem setting them at first, but it occurred to me it was a small typo in the documentation, as it does not work well if you target .html only:

read the thread

The documentation has been updated since then, and you can test headers locally with a few lines in config.toml, for example:

[server]
    [[server.headers]]
        for="/**"
        [server.headers.values]
            Permissions-Policy = "interest-cohort=()"
            Strict-Transport-Security = "max-age=31536000; includeSubDomains"
            X-Frame-Options = "SAMEORIGIN"
            X-Content-Type-Options = "nosniff"

See complete documentation


Source link