Error message is misplaced into content-type header value
$ curl -i -s http://localhost:5620/ids/notfound
HTTP/1.1 404 Not Found
Content-Type: no identifier for alias notfound
Content-Length: 0
Server: Ioflo WSGI Server
Date: Fri, 23 Sep 2022 06:57:51 GMT
GET /contacts/unknown
Error message content type is json but body is plain text
$ curl -i -s http://localhost:5620/contacts/BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha
HTTP/1.1 404 Not Found
Content-Length: 71
Content-Type: application/json
Server: Ioflo WSGI Server
Date: Fri, 23 Sep 2022 06:58:15 GMT
BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha is not a known identifier.
Steps to reproduce
keripy is at revision ed016a06c56a1faaff26f2cca24b8b9e385ffc54
GET /ids/notfound
Error message is misplaced into content-type header value
GET /contacts/unknown
Error message content type is json but body is plain text