Skip to content

Commit

Permalink
Error::NotAvailable should yield FastlyStatus::Unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
joeshaw committed Mar 12, 2024
1 parent 42ba1cf commit 8dca57d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl Error {
Error::BufferLengthError { .. } => FastlyStatus::Buflen,
Error::InvalidArgument => FastlyStatus::Inval,
Error::ValueAbsent => FastlyStatus::None,
Error::Unsupported { .. } => FastlyStatus::Unsupported,
Error::Unsupported { .. } | Error::NotAvailable(_) => FastlyStatus::Unsupported,
Error::HandleError { .. } => FastlyStatus::Badf,
Error::InvalidStatusCode { .. } => FastlyStatus::Inval,
Error::UnknownBackend(_) | Error::InvalidClientCert(_) => FastlyStatus::Inval,
Expand Down Expand Up @@ -199,7 +199,6 @@ impl Error {
| Error::InvalidMethod(_)
| Error::InvalidUri(_)
| Error::IoError(_)
| Error::NotAvailable(_)
| Error::Other(_)
| Error::ProfilingStrategy
| Error::StreamingChunkSend
Expand Down

0 comments on commit 8dca57d

Please sign in to comment.