Fastly Rust SDK maps FastlyStatus::Error to BackendCreationError::NameInUse.
By this, when we passed invalid host name value to fastly::Backend::builder func, we always received NameInUse error.
It's a misleading behavior for developers, who will assume they register the same backend multiple times.
In this PR, I defined a new internal Error InvalidBackendUrl and map it as FastlyStatus::HttpInvalid.
It will help developers to awake they are using invalid URI to build the dynamic backend.
Fastly Rust SDK maps
FastlyStatus::Error
toBackendCreationError::NameInUse
. By this, when we passed invalid host name value tofastly::Backend::builder
func, we always receivedNameInUse
error. It's a misleading behavior for developers, who will assume they register the same backend multiple times.In this PR, I defined a new internal Error
InvalidBackendUrl
and map it asFastlyStatus::HttpInvalid
. It will help developers to awake they are using invalid URI to build the dynamic backend.Example
before
after