[REQ][java-okhttpgson]: Make example snippets code compilable
Created by: saigiridhar21
Is your feature request related to a problem? Please describe.
Make example snippets code compilable. Also, specify how to access response message and headers in case of request failure. This will help the users to understand the SDK API easily.
Describe the solution you'd like
Update the snippets to make it compilable.