Server returns 403 during Authorization Code Flow

I am allready using one! see this line
conn = (HttpURLConnection) url.openConnection();