Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.4
-
None
-
None
Description
It's frustrating from a client point of view to perform an update and then get back a 400 with no additional information. Would it make sense to supply an HTTP header with information about the error? I was thinking something like:
X-SOLR-ERROR-MESSAGE: unknown field 'fooBarBaz'
This would snap right into SolrDispatchFilter in sendError at line 363:
res.addHeader("X-SOLR-ERROR-MESSAGE",ex.getMessage());
Attachments
Issue Links
- is part of
-
SOLR-141 Errors/Exceptions should be formated by ResponseWriter
- Closed
At the moment the response formatting is at the whim of the servlet container – so you do get additional information, but it's servlet container dependent on how that error information is formatted.
SOLR-141aims to fix that by allowing response writer specific formatting of the underlying exception so the client has all the data available.