Fix no default statuscode for JSON answer