how to return a not_found error from a manual

i need return a not found error, with the error code, from a call on ash_json_api, the action its a manual action someone can help please 😄
2 Replies
ZachDaniel
ZachDaniel•4mo ago
You'd return something like {:error, Ash.Error.Query.NotFound.exception()} from the manual action
nicolkill
nicolkillOP•4mo ago
worked well returning AshJsonApi.Error.NotFound.exception()

Did you find this page helpful?