HTTP Methods Used
The HTTP method of an endpoint defines the type of action it performs on a resource.
Wasabi S3 API uses the following standard HTTP methods:
PUT: Upload an object / create a bucket
GET: Retrieve an object / list objects
DELETE: Remove an object or bucket
POST: Some advanced multipart upload operations
PATCH: Update data (partial)
SDK/Tool Compatibility
The AWS SDKs or tools can be used directly with Wasabi by changing the endpoint.
Example in Python (Boto3)
import boto3
s3 = boto3.client(
's3',
endpoint_url='https://s3.wasabisys.com',
aws_access_key_id='YOUR_KEY',
aws_secret_access_key='YOUR_SECRET'
)
# Upload a file
s3.upload_file('localfile.jpg', 'my-bucket-name', 'uploaded.jpg')
Error Handling
The following table provides common error codes and their meaning.
Error Code | Meaning | Reason/Resolution |
---|---|---|
400 | Bad Request | This is a malformed request |
403 | Forbidden / SignatureFail | Check key, secret, and signature headers |
404 | Not Found | Bucket or object does not exist |
409 | Conflict | Bucket name already in use |