Add json responses for 404 and 500