Dell DX6004S DX Object Storage Application Guide - Page 34

Error Responses to WRITE

Page 34 highlights

Server: CAStor Cluster/5.0.0 Location: http://node-ip/name-or-uuid Content-UUID: 41a140b5271dc8d22ff8d027176a0821 Content-Type: text/html Content-Length: 68 CRLF A new content stream has been created as requested. Its URL is http://node-ip/name-or-uuid The preceding response means the DX Storage cluster has stored at least one copy of the supplied content stream. Other nodes, if required, can store additional replicas at a later time. The value of the Location header gives the URI at which the newly created content stream can be accessed in the cluster. The last part of the URI is the symbolic name or UUID of the stream. For unnamed objects, this value is repeated as the value of the Content-UUID header field. Note the Content-Type and Content-Length headers refer to the message payload of the response, if any, not the content stream itself. HTTP/1.1 301 Moved Permanently Date: Wed, 1 Sept 2010 15:59:02 GMT Server: CAStor Cluster/5.0.0 Location: http://node-ip/name-or-uuid?auth=value Content-Length: 0 The preceding response means the content can be stored as requested, but another node in the cluster will complete the WRITE. Furthermore, all future requests of this DX Storage cluster should be made through the new access node until another 301 response is received. There is no message-body, so the content length is always 0. The value of the Location header indicates which node in the cluster the redirect should go to. The client is expected to send another POST request using the exact URI contained in the Location header, including the auth= query argument. HTTP/1.1 307 Temporary Redirect Date: Wed, 1 Sept 2010 15:59:02 GMT Server: CAStor Cluster/5.0.0 Location: http://node-ip/name-or-uuid/?auth=B1E1509329C7A5DD90DCF6642DFB Content-Length: 0 The preceding response is similar to the 301 response, except the client should continue to use the current node (the one generating this response) for future requests until further notice. 6.5. Error Responses to WRITE The DX Storage cluster might return the following responses when the content length header does not match the actual content length, the specified content cannot be written to the cluster, or if there is a problem with the WRITE request itself. HTTP/1.1 400 Bad Request Date: Wed, 1 Sept 2010 15:59:02 GMT Server: CAStor Cluster/5.0.0 Content-Type: text/html Content-Length: 24 CRLF Host header is required. The preceding response indicates a problem with the WRITE request, such as missing mandatory headers, invalid message body, or any other violation of HTTP/1.1 by the POST request. The reason for the error is included in the message body of the response. Copyright © 2010 Caringo, Inc. All rights reserved 29 Version 5.0 December 2010

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

Copyright © 2010 Caringo, Inc.
All rights reserved
29
Version 5.0
December 2010
Server: CAStor Cluster/5.0.0
Location: http://
node-ip
/
name-or-uuid
Content-UUID: 41a140b5271dc8d22ff8d027176a0821
Content-Type: text/html
Content-Length: 68
CRLF
A new content stream has been created as requested. Its URL is
http://
node-ip
/
name-or-uuid
The preceding response means the DX Storage cluster has stored at least one copy of the supplied
content stream. Other nodes, if required, can store additional replicas at a later time. The value
of the Location header gives the URI at which the newly created content stream can be accessed
in the cluster. The last part of the URI is the symbolic name or UUID of the stream. For unnamed
objects, this value is repeated as the value of the Content-UUID header field. Note the Content-Type
and Content-Length headers refer to the message payload of the response, if any, not the content
stream itself.
HTTP/1.1 301 Moved Permanently
Date: Wed, 1 Sept 2010 15:59:02 GMT
Server: CAStor Cluster/5.0.0
Location:
http://
node-ip
/
name-or-uuid
?auth=
value
Content-Length: 0
The preceding response means the content can be stored as requested, but another node in
the cluster will complete the WRITE. Furthermore, all future requests of this DX Storage cluster
should be made through the new access node until another 301 response is received. There is no
message-body, so the content length is always 0. The value of the Location header indicates which
node in the cluster the redirect should go to. The client is expected to send another POST request
using the exact URI contained in the Location header, including the
auth=
query argument.
HTTP/1.1 307 Temporary Redirect
Date: Wed, 1 Sept 2010 15:59:02 GMT
Server: CAStor Cluster/5.0.0
Location:
http://
node-ip
/
name-or-uuid
/?auth=B1E1509329C7A5DD90DCF6642DFB
Content-Length: 0
The preceding response is similar to the 301 response, except the client should continue to use the
current node (the one generating this response) for future requests until further notice.
6.5. Error Responses to WRITE
The DX Storage cluster might return the following responses when the content length header does
not match the actual content length, the specified content cannot be written to the cluster, or if there
is a problem with the WRITE request itself.
HTTP/1.1 400 Bad Request
Date: Wed, 1 Sept 2010 15:59:02 GMT
Server: CAStor Cluster/5.0.0
Content-Type: text/html
Content-Length: 24
CRLF
Host header is required.
The preceding response indicates a problem with the WRITE request, such as missing mandatory
headers, invalid message body, or any other violation of HTTP/1.1 by the POST request. The
reason for the error is included in the message body of the response.