Problem/Motivation

The 406 says only "request failed," not which languages exist; RFC 7231 §6.5.6 says a 406 should list available representations.

Steps to reproduce

Request entity with en/fr/de, Accept-Language: fi → 406 with no list.

Proposed resolution

Advertise available translations in the error detail and as meta.availableTranslations.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lauriii created an issue. See original summary.

  • lauriii committed 4e2683f6 on 1.0.x
    feat: #3612568 406 responses should advertise the available translations...
lauriii’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.