If an HTTP error response contains a body, the content of that body MUST conform with the Problem Details format [RFC7807].
Currently there are some error responses which don't conform to this format, e.g. because they contain a plan text error message or print out a JavaScript error object.
In order to comply with the WoT Profile specification we need to modify at least all error responses which fall within the scope of the HTTP Basic Profile and HTTP SSE Profile to follow the Problem Details format, or not send a body at all.
The WoT Profile specification says:
Currently there are some error responses which don't conform to this format, e.g. because they contain a plan text error message or print out a JavaScript error object.
In order to comply with the WoT Profile specification we need to modify at least all error responses which fall within the scope of the HTTP Basic Profile and HTTP SSE Profile to follow the Problem Details format, or not send a body at all.