Having a unauthorized error responses in the centralized OpenAPI components library helps make error responses reusable across API requests
OpenAPI Components Responses Unauthorized Info
Message: Components has a unauthorized response.
Policies
Problem Details for HTTP APIs
Requiring that errors use the Problem Details for HTTP APIs standard.