AWS - API Gateway
A response mapping template uses this code:
The backend sometimes returns no
{
"result": "$input.path('$.data.result')",
"error": "$input.path('$.errorMessage')"
}The backend sometimes returns no
errorMessage field. What issue might occur?