Practical guide · Maintenance and Security

Website Error Monitoring

Error monitoring should help a small team identify what failed, who was affected and which release or dependency may be responsible. Public error pages and private diagnostic logs serve different purposes.

Information checked: 21 July 2026.

Error monitoring should help a small team identify what failed, who was affected and which release or dependency may be responsible. Public error pages and private diagnostic logs serve different purposes.

In brief: Record enough context to diagnose failures without leaking sensitive data.

Capture useful context safely

Useful error record
FieldPurpose
Timestamp and environmentCorrelate with releases and provider events
Route or operationIdentify the affected function
Correlation identifierConnect browser, server and queue events
Release versionCompare before and after a deployment
Sanitised technical detailsSupport diagnosis without exposing secrets
User and business impactSet priority and communication

Protect logs

  • Do not record passwords, payment data or full sensitive form content.
  • Restrict access and define retention.
  • Keep clocks synchronised.
  • Alert on rate and impact rather than every individual warning.
  • Preserve relevant logs during an incident.

Make public failures useful

Return the correct HTTP status, a plain explanation and a safe next step. Do not display stack traces, database queries, server paths or access tokens to visitors.

Acceptance check

Trigger a known test error in a non-production environment and confirm that the public page is safe while authorised staff receive enough context to diagnose it.

Separate symptoms from incidents

Hundreds of identical errors may represent one failed dependency. Group related events, preserve a sample and create one incident with business impact. Conversely, one payment or privacy failure can deserve immediate escalation even at low volume.

Records to keep

  • Error taxonomy and severity definitions.
  • Release and correlation identifiers.
  • Log-retention and redaction policy.
  • Incident link and resolution note.

Owner test: Take one production error and trace it from public symptom to server record, recent change, owner and final verification.

A useful escalation example

Suppose a payment callback begins returning errors after a release. The alert should identify the endpoint, affected release and first failure time, while the operations record confirms whether customers were charged. The responder can then pause the affected route, reconcile payments through the provider and decide whether to roll back. A generic “500 errors increased” message would not support those decisions.

Sources and date checked

This practical guidance was checked against the following primary sources. Date checked: 21 July 2026.

Keep the decision under your control

Retain the relevant accounts, source material, supplier terms and recovery information. Recheck changing prices, interfaces and rules before acting.