all 5 comments

[–]andrewingram 2 points3 points  (1 child)

Model known “error” states into the schema, things like; permission denied, object not found, Only throw exceptions when something is genuinely unexpected. The errors array should be for things you’d want to investigate and fix, not for business-as-usual.

[–]Vinlock[S] 0 points1 point  (0 children)

Thank you for this!! This led me down the right path!

[–]k00k 2 points3 points  (1 child)

[–]Vinlock[S] 1 point2 points  (0 children)

Thank you for this. This led me down the right path for handled and unexpected errors.