Fix display of HTTP error messages for code redemption

Apologies for the multiple pull requests, I've been having trouble syncing my local clone with the remote changes.

Started experiencing a JS error when redeeming codes and getting an error. Went ahead and fixed it.