Attempting to access a URL with an unsupported extension (e.g. json) results in a 500 error

Description

Steps to reproduce

Go to a URL for an existing page, but add the .json extension to the URL, e.g. https://test.archiveofourown.org/about.json

What happens

A 500 error.

What should happen

A 404 error to make it clear to the user the page is not meant to exist.

Notes

redsummernight suggests adding the following to the application controller:

Assignee

Unassigned

Reporter

Sarken

Roadmap

Misc

Priority

Lowest

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Easy

Milestone

Internal 0.9
Configure