exceptions now displayed in the proper content-type