Hi! I'm using a tiny REST api as the grid's data source. For the API its perfectly fine to return a 404 error if data isn't found, but the grid automatically handles this like a regular error (say, like a 500), instead of letting me handle it through the noRecords template (which is called fine if I return an empty collection instead of a 404 in the API).
How can I handle 404s like how the grid handles empty collections with the noRecords template?