Skip to content

Use RFC9457 for error responses #51

Closed

Description

@sdatapix

It is not clear from Token Endpoint Error Response Format if RFC 9457 is used for response body. RFC 9457 requires application/problem+json.

Also, it would be nice to see example(s) of response body in AAuth spec for the most frequently occurring errors on token endpoint and for polling.

Activity

  1. dickhardt commented on Jul 5, 2026

    @dickhardt
    Owner

    Fixed in cafba54 and published in draft-hardt-oauth-aauth-protocol-09.

    AAuth now adopts RFC 9457 problem details for error responses (Error Response Format):

    • Error bodies use Content-Type: application/problem+json.
    • The AAuth error code is carried in a required error extension member, which receivers use to determine how to proceed; error_description is replaced by the RFC 9457 detail member.
    • type, title, status, and instance may appear with their RFC 9457 semantics; AAuth defines no problem type URIs, so receivers must not rely on type to identify AAuth errors.
    • Added examples for a common token endpoint error (expired_resource_token) and a common polling error (denied), as requested.

    Thanks @sdatapix for the nudge — the previous text was ambiguous about whether problem details applied, and adopting it properly was the right call. You've been added to the Acknowledgments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions