D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

Response Data Type

Abstract Type
Properties
name data type constraints description
statusInfo StatusType  
entity object  
metadata map of array of object  
length number required int
allowedMethods array of string  
closed boolean required boolean
entityTag EntityTag  
stringHeaders map of array of string  
cookies map of NewCookie  
date number  
location string  
mediaType MediaType  
links array of Link  
headers map of array of object  
status number required int
lastModified number  
language string  

Example

{
  "statusInfo" : {
    "statusCode" : 12345,
    "reasonPhrase" : "...",
    "family" : "SERVER_ERROR"
  },
  "entity" : { },
  "metadata" : {
    "property1" : [ { }, { } ],
    "property2" : [ { }, { } ]
  },
  "length" : 12345,
  "allowedMethods" : [ "...", "..." ],
  "closed" : true,
  "entityTag" : {
    "weak" : true,
    "value" : "..."
  },
  "stringHeaders" : {
    "property1" : [ "...", "..." ],
    "property2" : [ "...", "..." ]
  },
  "cookies" : {
    "property1" : {
      "sameSite" : "LAX",
      "expiry" : 12345,
      "httpOnly" : true,
      "maxAge" : 12345,
      "secure" : true,
      "comment" : "...",
      "version" : 12345,
      "domain" : "...",
      "value" : "...",
      "path" : "...",
      "name" : "..."
    },
    "property2" : {
      "sameSite" : "STRICT",
      "expiry" : 12345,
      "httpOnly" : true,
      "maxAge" : 12345,
      "secure" : true,
      "comment" : "...",
      "version" : 12345,
      "domain" : "...",
      "value" : "...",
      "path" : "...",
      "name" : "..."
    }
  },
  "date" : 12345,
  "location" : "...",
  "mediaType" : {
    "subtype" : "...",
    "wildcardType" : true,
    "type" : "...",
    "wildcardSubtype" : true,
    "parameters" : {
      "property1" : "...",
      "property2" : "..."
    }
  },
  "links" : [ {
    "type" : "...",
    "uriBuilder" : { },
    "uri" : "...",
    "rels" : [ "...", "..." ],
    "title" : "...",
    "rel" : "...",
    "params" : {
      "property1" : "...",
      "property2" : "..."
    }
  }, {
    "type" : "...",
    "uriBuilder" : { },
    "uri" : "...",
    "rels" : [ "...", "..." ],
    "title" : "...",
    "rel" : "...",
    "params" : {
      "property1" : "...",
      "property2" : "..."
    }
  } ],
  "headers" : {
    "property1" : [ { }, { } ],
    "property2" : [ { }, { } ]
  },
  "status" : 12345,
  "lastModified" : 12345,
  "language" : "..."
}