pub fn from_string(msg: impl Into<String>, status: StatusCode) -> Self {
        #[derive(Debug, thiserror::Error)]
        #[error("{0}")]
        struct StringError(String);

        Self::new(StringError(msg.into()), status)
    }
/// Create a new error object from string with `503 INTERNAL_SERVER_ERROR`
/// status code.
Create a new error object from string with `503 INTERNAL_SERVER_ERROR`
status code.
Create a new error object from string with ` 503 INTERNAL_SERVER_ERROR ` status code .
pub fn from_string(msg: impl Into<String>, status: StatusCode) -> Self {
        #[derive(Debug, thiserror::Error)]
        #[error("{0}")]
        struct StringError(String);
        Self::new(StringError(msg.into()), status)
    }
pub fn from_string ( msg : impl Into < String > , status : StatusCode ) -> Self { # [ derive ( Debug thiserror Error ) ] # [ error ( " " ) ] struct StringError ( String ) ; Self :: new ( StringError ( msg . into ( ) ) , status ) }
Create a new error object from string with `503 INTERNAL_SERVER_ERROR`
status code.
Create a new error object from string with ` 503 INTERNAL_SERVER_ERROR ` status code .
msg
impl Into<String>
status
StatusCode