Display 404/NotFoundPage when a resource is not found on the server

Hi,

I’d like to render the NotFoundPage when a resource is not found on the server (eg: /accounts/non-existing-id instead of returning a message-specific for accounts, would display the more generic NotFoundPage.

How can I do that?

Hi @azee i assume that you using a cell to fetch data from the api. GraphQL— and yeah this is weird — always returns a 200 and then the data is empty or you throw an error in your service of the query doesn’t find a record then and you can handle that error.

Then you can decide in your cell to hose a navigate router command to go to the notfound() route in your Empty or Error component in your cell.