Function actix_web_security::authentication::error::error_handler::overwrite_auth_error_status_code[][src]

pub fn overwrite_auth_error_status_code(
    error: AuthenticationError,
    status_code: u16
)

Errors have a predfined HTTP-Status code that is returned in case an error occurs. This status code can be overwritten by calling this function. The status code must be in the range: 100 <= code <= 1000