[ 
https://issues.apache.org/jira/browse/JENA-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182305#comment-17182305
 ] 

Andy Seaborne commented on JENA-1946:
-------------------------------------

That models the response.

Why send a description of the response in the response? (In fact, it's 
impossible - what would the http:body be?).

It assumes the sending agent processes RDF - standard language runtime 
libraries do not. They quite often convert 4xx, 5xx into exceptions.

FYI: statusCodeNumber is an xsd:int, not a xsd:long.

> Fuseki error messages
> ---------------------
>
>                 Key: JENA-1946
>                 URL: https://issues.apache.org/jira/browse/JENA-1946
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Fuseki
>    Affects Versions: Jena 3.16.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>
> Fuseki error handlers try to set the "reason phrase" (one has a bug in it 
> whereby the phrase will be null).
> HTTP/2 responses do not have a reason phrase.
> Browser are reported to ignore any reason phrase.
> To prepare for the future, the error handling could change to:
>  * Use the standard reason phrase / let the system choose.
>  * Put in a plain text content body with the error message.
>  * (Future) Put in a JSON object with the error message if there is a 
> standard object format / JSON-LD schema.
> There is no ideal answer here - there is a diverse set of user expectations.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to