```swift
func getItems() async {
    let request = RESTRequest(path: "/items")
    do {
        let data = try await Amplify.API.get(request: request)
        let str = String(decoding: data, as: UTF8.self)
        print("Success: \(str)")
    } catch let error as APIError {
            print("Failed due to API error: \(error)")
    } catch {
        print("Unexpected error: \(error)")
    }
}
```