when I try to upload my code there is a stray 302. Can anyone help me work out how to fix this or know what is wrong ?
Post your code, not a picture of your code
Have you tried Tools->Fix Encoding and Reload?
Else paste your code in a reply here, go to preview (might be necessary), copy it again and paste it in your sketch (remove the old stuff first).
Do you know how to search this site (or how to google)? Searching this site gives about 2000 hits when searching for 302.