Comment 1 for bug 1409109

Revision history for this message
Gilbert Pilz (gilbert.pilz) wrote :

I checked and controllers that are exposed by "@wsme_pecan.expose()" do not have this problem. The exception handling logic in " @exception.wrap_wsme_controller_exception" format the message body resulting from an exception in JSON with a Content-Type of "application/json".

This, however, brings up another issue. Right now, if you use the Solum API, most methods of most resources will return a JSON body with any HTTP error but *some* methods of *some* resources will return a plain text message body. This seems less than ideal. We are requiring well-written clients to be aware of this behavior. It would be better if *all* methods of *all* resources either returned plain text error messages or JSON error messages.