Merge branch 'master' of github.com:qrvaelet/actix-web

This commit is contained in:
Your Name 2018-02-23 02:10:57 +01:00
commit 6da682ad1b
1 changed files with 6 additions and 0 deletions

View File

@ -627,6 +627,12 @@ pub fn ErrorPreconditionFailed<T>(err: T) -> InternalError<T> {
InternalError::new(err, StatusCode::PRECONDITION_FAILED)
}
/// Helper function that creates wrapper of any error and generate *RANGE NOT SATISFIABLE* response.
#[allow(non_snake_case)]
pub fn ErrorRangeNotSatisfiable<T>(err: T) -> InternalError<T> {
InternalError::new(err, StatusCode::RANGE_NOT_SATISFIABLE)
}
/// Helper function that creates wrapper of any error and generate *EXPECTATION FAILED* response.
#[allow(non_snake_case)]
pub fn ErrorExpectationFailed<T>(err: T) -> InternalError<T> {