Return a 404 response for JSON requests

We're seeing exceptions come through when someone appends `.json` onto the end of a URL, because Rails is looking for a JSON template instead of refusing to provide a JSON response.