+ Start a Discussion
Srinivas Bandi 4Srinivas Bandi 4 

System.HttpResponse[Status=null, StatusCode=401]

Hi All, 

when try to integrate Jira with Salesforce, I am getting  System.HttpResponse[Status=null, StatusCode=401] error, any suggestion.

Thanks 
 
Raj VakatiRaj Vakati
Set the content type header 
 
req.setHeader('Accept', 'application/json');

 
Raj VakatiRaj Vakati
Its POST operation not get .Update the setmethod to post
req.setMethod('POST');