You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: error.rs
    path of file: ./repos/TheReader/crates/backend/src
    
    the code of the file until where you have to start completion: use common::api::{ApiErrorResponse, WrappingResponse};
use reqwest::header::InvalidHeaderValue;

use std::io::Error as IoError;
use std::time::SystemTimeError;
use std::{num::ParseIntError, sync::PoisonError};

use thiserror::Error as ThisError;

use bcrypt::BcryptError;
use booki
    
    fn error_response(&self) -> actix_web::HttpResponse<actix_web::body::BoxBody> {
        let resp_value = match self {
            Self::ApiResponse(r) => WrappingResponse::<()>::Error(r.clone()),
            this => WrappingResponse::<()>::error(format!("{this}")),
        };

        let mut res = actix_web::HttpResponse::new(self.status_code());

        res.headers_mut().insert(
            actix_web::http::header::CONTENT_TYPE,
            actix_web::http::header::HeaderValue::from_static("text/plain; charset=utf-8"),
        );

        res.set_body(actix_web::body::BoxBody::new(
            serde_json::to_string(&resp_value).unwrap(),
        ))
    }