惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
Recent Commits to openclaw:main
Recent Commits to openclaw:main
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
罗磊的独立博客
V
Visual Studio Blog
爱范儿
爱范儿
H
Help Net Security
J
Java Code Geeks
I
InfoQ
Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recorded Future
Recorded Future
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
GbyAI
GbyAI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
Scott Helme
Scott Helme
S
SegmentFault 最新的问题
S
Securelist
L
LINUX DO - 热门话题
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
博客园_首页
B
Blog
F
Fortinet All Blogs
AWS News Blog
AWS News Blog
V
Vulnerabilities – Threatpost
S
Secure Thoughts
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Schneier on Security
Project Zero
Project Zero
Martin Fowler
Martin Fowler
C
Cybersecurity and Infrastructure Security Agency CISA
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How to Audit Every Error State in Your Web Application (A Step-by-Step Guide)
137Foundry · 2026-05-04 · via DEV Community

Most applications handle the happy path deliberately. Every form submission, every API call, every navigation event gets thought through. Error states get a fraction of that attention, usually added at the end of a sprint, often written by developers who are primarily thinking about logging rather than user experience.

The result: a product where success is smooth and failure is inconsistent, cryptic, or both. Fixing this requires a systematic audit, not a patch-on-demand approach. Here's how to do one from scratch.

Why Error Audits Are a Separate Project

You might think error message quality is caught during QA. It's usually not. QA tests for functional correctness: does the form reject invalid emails? Does the error appear at all? The user experience of the error message is a different question entirely: is the message specific? Does it tell the user what to do next? Is it written in plain English?

These are quality dimensions that require intentional evaluation. Functional correctness and UX quality overlap but don't cover each other. An error message can be technically correct (the right error, shown at the right time) and still be a UX failure ("Error 400: Bad Request").

Step 1: Map Every Surface Where Things Can Go Wrong

Start by listing every user action in your application that could produce an error. This is not the same as listing error messages you've already written. It's a comprehensive map of failure surfaces.

Group them into categories:

Form validation errors cover every field in every form: required fields left empty, values in the wrong format (email, phone, date), values that fail business rules (password too short, username already taken, amount below minimum).

Authentication errors cover wrong password, expired session, locked account, insufficient permissions for the requested action.

Network and system errors cover request timeouts, server errors (5xx responses), connection failures, service unavailable states.

State errors cover actions taken at the wrong time: editing a record that was deleted by another user, submitting a form twice, attempting an action that requires a completed prerequisite.

Empty states are a special category of error-adjacent state: no results from a search, no items in a cart, no activity in a feed. These aren't errors caused by failure, but they require the same kind of guidance.

Work through the application feature by feature and add everything to a spreadsheet. For most applications, this produces 30 to 80 distinct failure surfaces.

Step 2: Trigger Every State Deliberately

Once you have the map, systematically trigger each failure state. This sounds obvious, but it requires intention -- most error states require specific setup to reach.

To trigger form validation errors: submit forms with each field empty, with values in the wrong format, with values that violate business rules (one at a time, so you see exactly which error appears for each).

To trigger authentication errors: use wrong credentials, let sessions expire (or manually clear session cookies), attempt restricted actions while logged in as an unpermissioned user.

To trigger network errors: use browser DevTools to throttle connections to "Offline" or "Slow 3G" mid-operation. Attempt operations while the network is cut. Browser DevTools provide network throttling controls that make this straightforward.

To trigger state errors: requires more setup -- use multiple browser tabs, manipulate database state directly in a test environment, or write targeted test scripts.

Document every failure state you trigger with a screenshot. The screenshots serve two purposes: they're evidence for your audit findings, and they let you compare current vs. revised messages after you fix them.

tablet stylus annotation interface design
Photo by Marcial Comeron on Pexels

Step 3: Evaluate Each Message Against Three Criteria

For each error state you've triggered, evaluate the message against three criteria:

Is it specific? Does the message tell the user exactly what went wrong, not just that something went wrong? "An error occurred" fails this. "Your email address is not in the correct format" passes.

Does it point to next steps? Does the message give the user a clear action to take? "Your session has expired" fails this. "Your session has expired. Sign in again to continue." passes.

Is it written in plain language? Would a non-technical user understand it immediately? Technical error codes and developer-facing messages fail this unless they're accompanied by a plain-language explanation.

Use a scoring approach: mark each error message as Pass, Partial (needs improvement), or Fail on each criterion. This gives you a prioritized list: messages that fail all three criteria need complete rewrites; messages that fail one need targeted improvement.

Step 4: Check Accessibility

An error message that users can read visually may be completely inaccessible to users who rely on assistive technology. The Web Accessibility Initiative provides guidelines that apply directly to error messages.

The practical checks:

Error messages must not rely on color alone. "The field outlined in red" communicates nothing to users with color blindness unless the message is also repeated in text near the field.

Error messages must be associated with their fields programmatically. Screen readers read what the DOM says, not what visually appears nearby. WebAIM covers the technical requirements for linking error messages to inputs using aria-describedby and aria-invalid attributes.

Dynamically inserted errors must be announced. When an error message appears after a form submission, it needs to be in an ARIA live region or focus must move to the error so screen reader users hear it.

Run your application through a screen reader (VoiceOver on macOS/iOS, NVDA on Windows) and try triggering errors. What you hear is what screen reader users experience.

"Error states are where accessibility and usability overlap most visibly. An error message that a screen reader can't announce is a broken user journey for a meaningful share of your users -- and it's one of the most fixable categories of accessibility failure." - Dennis Traina, founder of 137Foundry

Step 5: Prioritize by Impact

Not all error states are equal. Prioritize fixes based on two factors: frequency and conversion impact.

High-frequency errors (login errors, common form validation failures) affect the most users and should be fixed first. High-conversion-impact errors -- errors that appear during checkout, signup, or other key flows -- should also be front of the queue even if they're less frequent.

An error audit will typically produce 20 to 40 items that need fixing. Trying to fix everything at once is impractical. A prioritized list makes it a project you can actually ship.

Step 6: Fix, Then Test with Real Users

Write revised error messages based on your audit findings. For each revision, check:

The specific cause is named. The next action is explicit. Technical jargon is replaced with plain language. Blame language is neutralized (use "Check that..." instead of "You entered...").

WCAG 2.1 Success Criterion 3.3.1 requires that input errors be identified in text and described to the user. Criterion 3.3.3 requires that error correction suggestions are provided where possible. Your revisions should meet both.

After revising, test with users who were not involved in writing the messages. Developers and designers become blind to their own copy quickly. A user who has never seen the interface will tell you immediately whether a message makes sense.

The A11Y Project maintains a checklist that covers error-related accessibility requirements alongside other WCAG criteria, useful for validating fixes.

Making Error Audits Routine

A one-time audit fixes what exists today. An ongoing process catches new errors before they ship.

The most effective ongoing practice: add error states to your definition of done for every feature. When a feature adds a new form, the developer lists every validation error and writes the message text before the feature is considered complete.

The second-most-effective practice: include error state screenshots in design specs. When designers spec a component, they show the default state, the hover state, the focused state, and the error state. If the error state isn't in the spec, the developer has to invent it.

For a comprehensive set of error message patterns covering both form validation errors and system errors, 137Foundry's design resources include the article How to Design Error Messages and Empty States That Actually Help Users, which covers pattern selection for different error types and how to design empty states that give users somewhere to go.

Error message quality is not a bonus feature. It's part of your product. Treat the audit as product work, and you'll ship a product that handles failure as well as it handles success.