fix error.json and status code in /error/

it is difficult to parse broken json even if json5.