From 78453a24fe369a6089bbc65e71c5f051447ddc5f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 28 Apr 2020 01:28:01 +0100 Subject: [PATCH] spec: Allow text/html success response for Seed Report endpoint There is no particular reason to limit the Seed Report endpoint to returning a human-readable message only in the error case. Allow an HTML response body for both success and error response codes. Suggested-by: David Spence Signed-off-by: Michael Brown --- spec/cx.lyx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spec/cx.lyx b/spec/cx.lyx index 415cfc6..4a7abfd 100644 --- a/spec/cx.lyx +++ b/spec/cx.lyx @@ -8605,12 +8605,11 @@ Response \begin_inset space ~ \end_inset -Content-Type: text/html (in the case of an error status code) +Content-Type: text/html (or empty response) \end_layout \begin_layout Description -Response Status code only, with a human-readable HTML error description - in the case of an error status code. +Response Status code plus OPTIONAL human-readable message in HTML format \end_layout \begin_layout Standard @@ -8644,8 +8643,10 @@ An Advertiser SHALL refuse to attempt to retrieve content from this endpoint \begin_layout Standard An Advertiser SHALL provide an indication to the user as to whether or not - the reponse was successful, and SHOULD provide an opportunity for the user - to view the HTML error description if the response was not successful. + the reponse was successful, SHOULD provide an opportunity for the user + to view the HTML error message if the response was not successful, and + MAY provide an opportunity for the user to view the HTML message if the + response was successful. \end_layout \begin_layout Subsection