The detail field of a problem document should contain "[a] human-readable explanation specific to this occurrence of the problem" (https://www.rfc-editor.org/rfc/rfc7807#section-3.1). We stopped setting that field in #854, but we should put something there. Perhaps just the std::fmt::Debug formatting of whatever Error object yielded the problem, maybe including the line of code where the error occurred, or even a backtrace.
The
detail
field of a problem document should contain "[a] human-readable explanation specific to this occurrence of the problem" (https://www.rfc-editor.org/rfc/rfc7807#section-3.1). We stopped setting that field in #854, but we should put something there. Perhaps just thestd::fmt::Debug
formatting of whateverError
object yielded the problem, maybe including the line of code where the error occurred, or even a backtrace.