Set response status for range requests to file and blob urls

This commit is contained in:
Fernando Jiménez Moreno 2018-11-15 06:45:13 +01:00
parent b96e5681aa
commit 79d27cb7ca
5 changed files with 96 additions and 37 deletions

View file

@ -9,7 +9,7 @@ use url::Url;
use uuid::Uuid;
/// Errors returned to Blob URL Store request
#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub enum BlobURLStoreError {
/// Invalid File UUID
InvalidFileID,
@ -17,6 +17,8 @@ pub enum BlobURLStoreError {
InvalidOrigin,
/// Invalid entry content
InvalidEntry,
/// Invalid range
InvalidRange,
/// External error, from like file system, I/O etc.
External(String),
}