Skip to content

Commit

Permalink
Make it clearer that assembly-name stripping is not a MUST in `restJs…
Browse files Browse the repository at this point in the history
…on1`

The spec already allows for an error response to containe the full Shape
ID (including namespace), but this wording makes it clearer.
  • Loading branch information
david-perez authored and mtdowling committed Nov 29, 2022
1 parent 31ddf68 commit a2315b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source-1.0/spec/aws/aws-restjson1-protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ is contained. New server-side protocol implementations MUST use a header field
named ``X-Amzn-Errortype``. Clients MUST accept any one of the following: an
additional header with the name ``X-Amzn-Errortype``, a body field with the
name ``__type``, or a body field named ``code``. The value of this component
SHOULD contain only the :token:`shape name <smithy:Identifier>` of the error's
:ref:`shape-id`.
SHOULD contain the :token:`shape name <smithy:Identifier>` of the error's
:ref:`shape-id`. The value of this component SHOULD NOT include the
:ref:`shape-id`'s namespace.

Legacy server-side protocol implementations sometimes include additional
information in this value. New server-side protocol implementations SHOULD NOT
Expand Down

0 comments on commit a2315b8

Please sign in to comment.