Skip to main content

hyperlane_plugin_multipart/
enum.rs

1/// Validation or parsing error produced by [`MultipartPlugin::parse`].
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3pub enum MultipartError {
4    /// Missing or invalid `boundary=...` parameter in `Content-Type`.
5    MissingBoundary,
6    /// Malformed RFC 7578 multipart framing or part headers.
7    MalformedBody,
8    /// Total request body exceeded `max_total_bytes`.
9    TotalTooLarge,
10    /// Number of parts exceeded `max_parts`.
11    TooManyParts,
12    /// Number of file uploads exceeded `max_files`.
13    TooManyFiles,
14    /// Individual uploaded file exceeded `max_file_bytes`.
15    FileTooLarge,
16    /// Individual form text field exceeded `max_field_bytes`.
17    FieldTooLarge,
18    /// Uploaded file MIME type was not in `allowed_mime_prefixes`.
19    DisallowedMime,
20}