Update dependencies

This commit is contained in:
Lennart
2024-09-19 15:27:26 +02:00
parent 744c44b3be
commit 436d6fd41c
9 changed files with 388 additions and 238 deletions

View File

@@ -1,13 +1,14 @@
use actix_web::{http::StatusCode, HttpResponse};
use derive_more::{Display, Error};
use derive_more::Display;
use thiserror::Error;
#[derive(Debug, Display, Error, Clone)]
pub enum Error {
#[display(fmt = "Internal server error")]
#[display("Internal server error")]
InternalError,
#[display(fmt = "Not found")]
#[display("Not found")]
NotFound,
#[display(fmt = "Bad request")]
#[display("Bad request")]
BadRequest,
Unauthorized,
}