エラー応答について理解しておくと、処理をトラブルシューティングする際に役立ちます。
処理中にエラーが発生した場合に返されるHTTPステータス コードを次に示します。
Swiftエラーの名前 | HTTPのステータス |
---|---|
AccountNameTooLong、ContainerNameTooLong、HeaderTooBig、InvalidContainerName、InvalidRequest、 InvalidURI、MetadataNameTooLong、MetadataValueTooBig、MissingSecurityHeader、ObjectNameTooLong、TooManyContainers、TooManyMetadataItems、TotalMetadataTooLarge |
400 Bad Request |
AccessDenied | 403 Forbidden |
ContainerNotEmpty、ContainerAlreadyExists | 409 Conflict |
InternalError | 500 Internal Server Error |
InvalidRange | 416 Requested Range Not Satisfiable |
MethodNotAllowed | 405 Method Not Allowed |
MissingContentLength | 411 Length Required |
NotFound | 404 Not Found |
NotImplemented | 501 Not Implemented |
PreconditionFailed | 412 Precondition Failed |
ResourceNotFound | 404 Not Found |
Unauthorized | 401 Unauthorized |
UnprocessableEntity | 422 Unprocessable Entity |