Generate a 404 response for nonexistent models
Generate a 404 response for nonexistent models

Rather than raise an exception, return a valid JSON[-P] response with the error
message and a 404 status when a nonexistent model is requested.

yazman/statscache,yazman/statscache,yazman/statscache