Is there an idiomatic way for an action

Is there an idiomatic way for an action to return an error to the client?
Was this page helpful?