Remove some charm code from the backup handler and use the correct error response code
Basic tests for backup endpoint