Infer success status code from method.