Use GET to check validity of coupon because the request is both safe and idempotent.
Reformat code.