All jobs / Frontend / web developer

Frontend / web developer interview question · 1–3 years

The register API can fail because the email is taken or because the password is too short.

What should the UI switch on?

The strongest answer

A stable machine code (`email_taken`) plus an optional message — not a translated sentence and not the HTTP status alone

Why it works

Exactly. Status is the class; the code is the case. Strings change with locale and copy tweaks.

What a good answer covers

Answers that fall short

Who gets asked this

More Frontend / web developer questions