-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return HTTP 400 on unrecognized task ID (#908)
DAP-02's section on `/hpke_config` included a requirement that requests for HPKE configs where the task ID is unrecognized should yield HTTP 404 Not Found. Our implementation returned 404 from *all* endpoints if the request referenced an unrecognized task ID, which was not in compliance with DAP-02, since the errors section says that HTTP 400 Bad Request should be used "unless otherwise specified" (it was only otherwise specified for `/hpke_config`). DAP-03 improves this by removing the HTTP 404 Not Found requirement from `/hpke_config`, so now we can uniformly return HTTP 400 Bad Request for all `unrecognizedTask` errors, and in fact all errors since no protocol text ever specifies otherwise. This situation still isn't optimal, because the protocol shouldn't force us to use Bad Request everywhere, but we will have to wait for future DAP revisions to fix that. Closes #705
- Loading branch information
1 parent
f8f3e7c
commit f1c4e87
Showing
1 changed file
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters