OAuth token generation

Hi ,

We created web app in companies house with client Id/client secret and makkeing callout from salesforce using the hppts callout with clientId/client secreate to generate access token to authorization . getting an error like
Unable to fetch the OAuth token exception let us know what we are missing ?