Reference: HTTP status codes, chmod modes and cron schedules
Look-up pages for the things developers search for again and again. Each one explains the cause, shows a working example and opens it in the matching tool, in your browser.
HTTP status codes
- HTTP 301 Moved Permanently: redirects, caching and SEO
- HTTP 302 Found: temporary redirects, and when to use 303 or 307 instead
- HTTP 304 Not Modified: how conditional requests and ETags save bandwidth
- HTTP 400 Bad Request: the common causes and how to find the bad part
- HTTP 401 Unauthorized: missing or invalid credentials, and 401 vs 403
- HTTP 403 Forbidden: why access is refused and how to fix it
- HTTP 404 Not Found: causes, how to debug it and what to return instead
- HTTP 429 Too Many Requests: what it means and how to handle it
- HTTP 500 Internal Server Error: how to find the cause and what to tell users
- HTTP 502 Bad Gateway: finding the broken link between the proxy and the app
- HTTP 503 Service Unavailable: maintenance pages, overload and Retry-After
- HTTP 504 Gateway Timeout: why the proxy gave up waiting, and the timeouts to check
chmod permissions
- chmod 400: read-only private files, such as .pem keys
- chmod 600: private files for SSH keys, .env and other secrets
- chmod 644: what rw-r--r-- means and why it is the default for files
- chmod 664: files that a group can edit (rw-rw-r--)
- chmod 700: private folders and scripts that only the owner can use
- chmod 755: what rwxr-xr-x means and when to use it
- chmod 775: shared folders and scripts for a group (rwxrwxr-x)
- chmod 777: why it is dangerous and what to do instead
Cron schedules
- Cron daily at midnight (0 0 * * *): @daily, time zones and a better hour
- Cron every 5 minutes (*/5 * * * *): syntax, the step operator and its limits
- Cron every 6 hours (0 */6 * * *): steps in the hour field
- Cron every 15 minutes (*/15 * * * *): quarter hours and staggered starts
- Cron every hour (0 * * * *): @hourly, and the mistake of * 0 * * *
- Cron every minute (* * * * *): how it works and the traps
- Cron every Monday at 9 AM (0 9 * * 1) and the day-of-month OR trap
- Cron on the first day of the month (0 0 1 * *): @monthly and its limits
- Cron on the last day of the month: why there is no L, and three working solutions
- Cron on weekdays at 9 AM (0 9 * * 1-5): Monday to Friday