from_data()
To still be able to handle errors correctly, also regarding the http status code, `thiserror::Error` is used.