Skip to main content

Practice ยท 2 of 3

The Error Contract Decision

Declare errors with: invalidTicket (the HTTP status you return for a failed-server-side-validation create), notAuthor (status for a non-author trying to edit), notSignedIn (status for missing auth), and clientValidates (boolean โ€” do you ALSO validate in the browser for fast feedback?).

Difficulty: advanced

Back to lesson: Practice: Capstone Design โ€” Attack Your Own Design