Commit 499566af authored by Sophie Wenzel-Teuber's avatar Sophie Wenzel-Teuber
Browse files

More flexible error creation

All different kinds of errors our server sends are in compliance with Amazon S3 errors. They are now stored in one place and should be accessed from anywhere.

Changelog:
* add the file s3_errors.h that contains const objects for all errors that might occur (most of them are not checked yet)
* change struct error_info into a class and add a function to create the XML from the object's variables
* Use these errors in the request handlers
* Add an error object to the s3 authorisation that will always contain "Access Denied" or another error if applicable
* Update tests to test the code generation and error return values
parent 3a557d35
Pipeline #1526 passed with stages
in 7 minutes and 29 seconds