Search Open Water Design
Errors and notices.
An error says what happened and how to fix it, right next to what caused it. It shows, it’s announced and it sounds once, and what the person already typed is never lost.
Available Updated November 24, 2026
Principles
An error is part of the path, not an interruption. Every one follows the same six rules, whether it belongs to a field or to a whole page.
-
Next to what caused it
A value’s error goes under its field; an action’s, next to its button; a dialog’s, inside the dialog. Never far from where the eye is.
-
It says how to fix it
What’s missing and what to do, with an example of the format when it helps: “Add the @ (name@company.com).”
-
It keeps what was typed
An error never clears a field or closes a form. Retrying sends the same thing with the same key: the server doesn’t duplicate it.
-
It arrives on time
When you leave a field, if you typed in it, and on submit. Never while typing, and it goes away as soon as the value is valid.
-
Never color alone
A ring, an icon and a text. Someone who can’t tell red apart reads the same error.
-
It doesn’t reveal what it shouldn’t
An access error says there’s no permission, never why. The technical detail stays in the log, with its
requestId, never on screen.
Where each error lives
Four scopes, from the smallest to the largest. The error goes in the smallest one that explains it.
| Scope | Where it shows | How it’s announced | For example |
|---|---|---|---|
| A field | Under the field, in place of its help, with the error’s ring and icon. | On reaching the field, by its aria-invalid. | “Add the domain after the @ (name@company.com).” |
| The form | The summary, above the actions; focus, on the first error. | Once, through the live region. | “2 fields need fixing.” |
| An action | Next to the button that asked for it or, in a view, above its list, with Dismiss. In a dialog, inside the dialog. | On appearing, by its role="alert". | “Something went wrong. Try again or email hola@flouvia.com.” |
| A page | The whole page: its title says what happened and its links, where to go. | Its title and its h1. | “This route does not exist.” |
In a field and in the form
Cuenca’s fields validate with the platform’s rules (required, type, pattern, minlength) and decide when the error shows and what it says. Try the form: submit it as is, fix it and submit again.
-
On leaving and on submit
When you leave a field, only if you typed in it; on submit, all of them. A field nobody touched isn’t marked.
-
It goes away once fixed
Without waiting to leave the field. The error the server sent, too.
-
Focus goes to the first one
On submit with errors, with the ring in the error’s color. Nothing is sent, and neither the page nor the view hears about it.
-
The summary counts
Above the actions, “2 fields need fixing.” As you fix them it says “1 field still needs fixing.” and only changes when fewer are left.
-
What the server knows, in its field
An email that already has an account or a name that doesn’t match go to the field with
setError, and clear on their own once fixed. -
The help stays
The error replaces it on screen while it’s there, but the reader hears both: the help says what’s needed and the error, what’s missing.
What the server answers
Every Flouvia API answers its errors in one format, application/problem+json, and the interface decides where to show them.
- AppError The service throws the expected error: its code, its status and a text that can be shown.
- problem+json
handle()answers it in the single format, with itsrequestId.
Server
- ApiError
api()throws it with itsdetailand, if it carries one, its field. - The view It puts it in its field with
setErroror in the action’s notice.
Browser
api() hands it to the view and the view puts it in its field or its notice.| What happened | What the person sees |
|---|---|
An expected error (AppError) · 400 to 429 | Its detail, written to be shown. If it carries field, in that field. |
| Validation doesn’t pass · 422 | The first field that didn’t pass, marked in place. |
| No session · 401 | A text that says the session isn’t available, without saying why. |
| No permission · 403 | A text that says the account doesn’t have that permission, without naming the rule. |
| An unexpected failure · 500 | A text that asks to try again shortly. The log keeps its code and its requestId, with no personal data. |
| The network doesn’t answer | The text the view hands to api() for that moment. On Contact, sending stops after 10 s and says so. |
The code (VERSION_CONFLICT, RATE_LIMITED…) is for the view and the log, never for the screen: the view turns it into text in its language, like the portal sign-in, which maps each code to its message.
An action’s notice
When something that isn’t a field fails (sending, saving, uploading), the notice goes next to the action, says what to do and the button comes back ready to retry. Press Send: this sample always fails.
setLoading and, on failure, goes back to how it was; the notice appears below, in a role="alert" that was already on the page, and error sounds. It’s the Contact form’s text.-
Next to the action
In a form, under its button; in a dialog, inside the dialog; in a view, above its list, with Dismiss.
-
The next step
Retry and, when there’s no other way out, who to write to: “Try again or email hola@flouvia.com.”
-
The button comes back
setLoading(button, false)returns it to how it was and what was typed stays. On editing or retrying, the notice clears.
Notices, Cuenca’s component for what isn’t a field, arrives with its core set and is Soon today. Until then, each surface draws its notice with the theme’s roles: the danger fill and its text, which steps up on overlays to pass 4.5:1.
A page that doesn’t exist
A route that doesn’t exist says what happened in one line and offers where to go, with the site’s navigation in view.
-
An old route never lands here
What gets renamed redirects with a 301 to its new name; a saved link keeps working.
-
Private pages go back to their list
In Ops, a link to a client that doesn’t exist goes back to the client directory, not to an empty page.
-
Access has its own page
An account without access lands on its own screen, with the session already closed on the server, and with who to write to.
How it’s written
In one or two sentences: what happened and what to do. In the person’s language, without blame and without alarm.
| Yes | No | Why |
|---|---|---|
| “Add the @ (name@company.com).” | “Invalid email.” | It says what’s missing and shows the format. |
| “Too many attempts in a row. Wait a few minutes and try again.” | “Error 429: Too Many Requests.” | It says how long to wait, with no codes. |
| “The file is larger than 50 MB.” | “File not allowed.” | It gives the limit that was crossed. |
| “Use at least 12 characters.” | “The password is too weak.” | It says what to do, not what’s wrong. |
| “Something went wrong. Try again…” | “Oops! Something broke!” | No interjections or exclamation marks. |
- Never “invalid”, “error” or “failed” as the message: they name the problem, not its fix.
- With “you” and in the present: “Check the email”, not “The user entered an incorrect email”.
- The same value, the same name: if the label says Email, the error doesn’t say “e-mail address”.
- In Spanish and English from each page’s copy; Cuenca’s default messages already come in both.
Accessibility
Measured against WCAG 2.2 AA, on every layer and in every theme.
| Criterion | How it’s met |
|---|---|
| 1.4.1 Use of Color | The 1.5 px ring, the icon and the text. With forced colors, a 2 px system border. |
| 1.4.3 Contrast (Minimum) | The error text passes 5.9:1 in the worst case of the four layers; inside an overlay it steps up to its lighter tone. |
| 3.3.1 Error Identification | aria-invalid="true" on the control and the message in its aria-describedby. On load, nothing is announced as invalid. |
| 3.3.3 Error Suggestion | Every message says how to fix it, with an example of the format. |
| 4.1.3 Status Messages | The summary is announced once through the live region; an action’s notice, through its role="alert", without moving focus. |
| 2.4.3 Focus Order | On submit with errors, focus goes to the first one, in page order. |
Motion and sound
An error arrives like anything that arrives, with Cauce’s drop, and sounds once with Onda. It never shakes the page or blinks.
| Moment | Cauce | Reduced motion | Onda |
|---|---|---|---|
| A field’s error appears | bloom: it appears and drops 4 px into place. | It fades in 200 ms. | Nothing: typing never sounds. |
| The ring changes color | drop. | It fades in 200 ms. | — |
| The form stops on submit | — | — | error, once per submit. |
| An action fails | The button returns to its content; the notice arrives with bloom. | It fades in place. | error. |
| The sign-in code doesn’t work | The field shakes once. | It stays still. | error. |
The error sound is the only one in Onda outside its scale: it drops to G, outside the E major pentatonic, so it stands apart without being louder. With sound off, everything above shows and is announced the same way.
Changes
- Errors and notices · System
New guide: a field’s error and the summary, an action’s notice, the page that doesn’t exist and how errors arrive from the server.