Added `reason` field, fixes #766.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | --
| Fixed tickets | #766
| License       | MIT
| Doc PR        | --