Hello all,
I am creating a REST API with a spec-first approach. However, I am using the try-catch method to handle any exception if any occurs. But whenever any error related to syntax or something occurs, we get internal server error
{
"errors": [
{
"code": 6220,
"domain": "%ObjectErrors",
"error": "ERROR #6220: Internal Server Error",
"id": "InternalError"
}
],
"summary": "ERROR #6220: Internal Server Error"
}