aboutsummaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 8460376..0a36476 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -2,6 +2,7 @@ use sputnik::hyper_body::FormError;
use sputnik::request::QueryError;
use std::str::Utf8Error;
+/// For convenience this enum also contains nonerroneous variants.
pub enum Error {
/// A 400 bad request error.
BadRequest(String),
@@ -13,6 +14,8 @@ pub enum Error {
NotFound(String),
/// A 500 internal server error.
Internal(String),
+ /// A 304 response.
+ NotModified,
/// A 302 redirect to the given path.
Redirect(String),