Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe error response format for directory API #52

Merged
merged 1 commit into from
Aug 17, 2020

Conversation

farshidtz
Copy link
Member

@farshidtz farshidtz commented Aug 15, 2020

This describes the use of Problem Details for response errors. It also adds a short intro before TD object.

It includes the following editorial note:

WoT-specific error types
The Problem Details error type field is a URI reference which could used to map the occurred error to WoT-specific error class. There are few open issues raising the lack of WoT-specific error types: wot-discovery#44, wot-thing-description#303, wot-scripting-api#200.
For now, type can be omitted which defaults to "about:blank", and title should be set to HTTP status text.


Preview | Diff

@farshidtz farshidtz requested a review from egekorkan August 15, 2020 17:20
@mmccool
Copy link
Contributor

mmccool commented Aug 17, 2020

As discussed in the meeting, we need to add some details of error responses in the TD (including different content types for error responses than the successful response) but this will be done in an additional PR, and we will merge this one as a baseline.

@mmccool mmccool merged commit 31ceb4f into w3c:master Aug 17, 2020
@farshidtz farshidtz deleted the problem-details branch March 7, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants