feat: add model

This commit is contained in:
Sandro Eiler 2023-10-05 14:33:12 +02:00
parent c5f6a24b3a
commit 42a75ba800
6 changed files with 117 additions and 1 deletions

View file

@ -6,8 +6,10 @@ pub type Result<T> = core::result::Result<T, Error>;
#[derive(Debug)]
pub enum Error {
LoginFail,
PropertyDeleteFailIdNotFound { id: u64 },
}
/// FIXME: return different status codes for different errors
impl IntoResponse for Error {
fn into_response(self) -> Response {
println!("->> {:<12} - {self:?}", "INTO_RESPONSE");