httpd: use json errors for location /v1
resolves: #17