s3status
s3status |
Purpose
Synopsis
function s3status(bucket:s3bucket):integer
Return value
One of the following constants:
- S3_OK
- The operation completed successfully.
- S3_NOT_FOUND
- The requested object was not found in the S3 bucket.
- S3_ACCESS_DENIED
- User is not authorized to access the S3 bucket.
- S3_CONNECTION_ERROR
- Unable to connect to the S3 service.
- S3_SERVICE_ERROR
- The S3 service returned an unexpected error code.
- S3_IO_ERROR
- The S3 module encountered an error reading or writing local files.
- S3_PARSE_ERROR
- The S3 module did not understand the response from the S3 service
Further information
After every call to an S3-related function or procedure, you should check the value of
s3status to see if your request succeeded. If it's unclear why an error is being returned, more troubleshooting output can be generated by setting the parameter 's3_verbose' to true, or inspecting the return value of
s3getlasterror.
Related topics