correctly read error code from Graph API's response