FamilySearch/gedcomx-php

Add the FS extensions Error object

Closed this issue · 1 comments

https://github.com/FamilySearch/gedcomx-familysearch-extensions/blob/master/specifications/gedcomx-familysearch-specification.md#error

{
  "errors" : [ {
    "code" : 401,
    "message" : "Unable to  read tf person.",
    "stacktrace" : "GET http://tf.prod.us-east-1.prod.fslocal.org/tf/person/KWC8-LKC?oneHops=none returned a response status of 401 Unauthorized:\n{\n\"401\": \"Unauthorized\"\n}"
  } ]
}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fs:familysearch xmlns="http://gedcomx.org/v1/" xmlns:fs="http://familysearch.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
    <fs:error>
        <fs:code>401</fs:code>
        <fs:message>Unable to  read tf person.</fs:message>
        <fs:stacktrace>GET http://tf.prod.us-east-1.prod.fslocal.org/tf/person/KWC8-LKH?oneHops=none returned a response status of 401 Unauthorized:
{
"401": "Unauthorized"
}</fs:stacktrace>
    </fs:error>
</fs:familysearch>

The XML implies it's part of the FamilySearchPlatform data type but it's not documented.