Fixed API response parameter parsing to support '.' characters in keys.
Improved error code determination when handling API error responses.