httpd: use json errors for location /v1