404 Redirects in netlify.toml fail to work

Following the documentation, I’ve prepped redirect rules based on a two-language (EN/JA) Eleventy site where my default lang of en is implied and language code excluded by default (i.e. / and /ja).

Everything works but my 404 rules fail to be detected (see the default Netlify 404 screen) — are they conflicting with my attempt to remove ‘en’ from the url for my default language?



# Redirect any URLs with the language code in them already
[[redirects]]
  from = "/en/*"
  to = "/:splat"
  status = 301
  force = true

# Important: Per shadowing rules, URLs for the _non-default_ language-specific content files are served without redirects.

# Redirect for end-user’s browser preference override
[[redirects]]
  from = "/*"
  to = "/ja/:splat"
  status = 302
  conditions = {Language = ["ja"]}

# Default
[[redirects]]
  from = "/*"
  to = "/en/:splat"
  status = 200

# 404 handling
[[redirects]]
   from = "/ja/*"
   to = "/ja/404"
   status = 404

[[redirects]]
   from = "/en/*"
   to = "/en/404"
   status = 404

I’d assume the ja 404 rule to work in your current file, but the en one is being rendered redundant due to the first rule. If even ja is not working, please share the site name so we can check.