Fix flash responses for invalid codes
Merge pull request #59 from hyperoslo/fix/invalid-code-responses

Fix flash responses for invalid codes