1
Answer

Error handling using graphql

How will i display response code.i am using this code .
throw new GraphQL.ExecutionError("INVALID_CAQHID")
{
Code = "213"
};
and i am getting the output as below.i am not able to display the status code.please help me to fix the same.
 
{
"data": {
"getDetails": null
},
"errors": [
{
"message": "INVALID_ID"
}
]
}
Answers (1)