Skip to main content

Lesson 8 of 9

Error States & Edge Cases in User Flows

Error states and edge cases are where most design efforts fall short - teams invest in happy-path design and treat errors as an afterthought. But for users, error moments are precisely when your product is under the most stress and trust is most fragile. A brilliantly designed happy path followed by a broken or confusing error state leaves a worse impression than a slightly clunky happy path with graceful error recovery. Designing error states deliberately - before wireframing - is what separates senior designers from junior ones.

35 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

The 5 Categories of Error States

  • User input errors: The user made a mistake - wrong password, invalid email format, required field left blank, value out of allowed range. Design principle: prevent errors with appropriate input constraints (phone fields accept only numbers), detect them in real-time with inline validation (red border + error message appears when user leaves the field, not when they submit the form), and explain what went wrong AND how to fix it ('Password must be at least 8 characters with one number'). Never say 'Invalid input' - tell the user what's wrong and what to do
  • System errors: The server failed, the connection timed out, or a background process encountered an error. These are not the user's fault - the error copy must reflect that ('Something went wrong on our end. Please try again - your progress has been saved'). Never blame the user for system failures. Provide a clear recovery action: 'Try again' or 'Contact support'
  • Permission errors: The user tried to do something they don't have permission to do - access a premium feature without subscription, view another user's private data, edit a read-only record. Design principle: don't show permissions as an error after the action fails. Prevent the attempt with appropriate UI treatment (grayed-out feature with 'Upgrade for access' tooltip). When unavoidable, explain why access is restricted and offer a clear path forward
  • Empty states: A new user with no data, a user who deletes all items, a search that returns no results. Empty states are not errors but they require deliberate design. Don't leave a blank white screen - explain why it's empty, show what content will appear here and how to add it, and make the call-to-action obvious ('Upload your first file', 'Add your first contact')
  • Destructive action confirmation: When a user is about to do something irreversible (delete account, remove data, cancel subscription), add a deliberate confirmation step. But don't confirmation-dialog everything - only irreversible, high-stakes actions warrant a modal. 'Are you sure?' dialogs habituate users to clicking 'OK' without reading, defeating the purpose

Writing Effective Error Messages

Error message writing is a UX skill as important as visual design - and it's consistently done poorly. The formula for an excellent error message has four components: (1) What happened: state the problem clearly and without jargon. 'We couldn't process your payment' not 'Transaction exception: 402'. (2) Why it happened (if known and helpful): 'Your card was declined by your bank.' Not always appropriate - sometimes you genuinely don't know why or the reason is irrelevant to the fix. (3) What to do: a specific, actionable next step. 'Try a different card' or 'Check that your billing address matches what your bank has on file.' (4) A way out: if the user can't fix the problem themselves, give them an escape route - a support link, a phone number, or an alternative path. Tone matters enormously: error messages should sound human and empathetic, never robotic or blaming. 'Oops, we couldn't save your work - please try saving again' performs dramatically better than 'Save operation failed: null pointer exception'.

Diagram
Loading diagram…

Error States & Edge Cases in User Flows: Visual guide and core principles.

Edge Cases Designers Must Always Consider

  • First-use / empty state: What does a new user see before they've created any content? Design onboarding into the empty state itself
  • Maximum content: What happens when a field has 500 characters instead of 20? When a list has 10,000 items instead of 10? When a username is 80 characters long? Test these extremes - they break layouts that were only designed for 'typical' content
  • Minimum content: What happens when content is missing - no profile photo, no product description, no reviews yet? Design graceful fallback states for missing data
  • Slow network: What does the product look like on a 3G connection? Show skeleton loaders, loading states, and progress indicators. Never show a blank white screen while waiting for data
  • Interruption recovery: What happens if the user is mid-checkout when their phone battery dies? When they switch apps and come back 30 minutes later? When they close the browser accidentally? Auto-save, draft persistence, and 'continue where you left off' are features UX designers specify; they're not engineering assumptions
  • Accessibility edge cases: What if the user's system font size is 200%? What if they're using screen readers? What if color is unavailable (grayscale accessibility mode)? These aren't theoretical - 15% of users have some form of disability

Tip

Tip

Practice Error States Edge Cases in User Flows in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Practice Task

Note

Practice Task - (1) Write a working example of Error States Edge Cases in User Flows from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Quick Quiz

Common Mistake

Warning

A common mistake with Error States Edge Cases in User Flows is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready ui ux code.

Key Takeaways

  • Error states and edge cases are where most design efforts fall short - teams invest in happy-path design and treat errors as an afterthought.
  • User input errors: The user made a mistake - wrong password, invalid email format, required field left blank, value out of allowed range. Design principle: prevent errors with appropriate input constraints (phone fields accept only numbers), detect them in real-time with inline validation (red border + error message appears when user leaves the field, not when they submit the form), and explain what went wrong AND how to fix it ('Password must be at least 8 characters with one number'). Never say 'Invalid input' - tell the user what's wrong and what to do
  • System errors: The server failed, the connection timed out, or a background process encountered an error. These are not the user's fault - the error copy must reflect that ('Something went wrong on our end. Please try again - your progress has been saved'). Never blame the user for system failures. Provide a clear recovery action: 'Try again' or 'Contact support'
  • Permission errors: The user tried to do something they don't have permission to do - access a premium feature without subscription, view another user's private data, edit a read-only record. Design principle: don't show permissions as an error after the action fails. Prevent the attempt with appropriate UI treatment (grayed-out feature with 'Upgrade for access' tooltip). When unavoidable, explain why access is restricted and offer a clear path forward

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done