1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Error types and utilities for handling "405 Method Not Allowed" errors.
use Error;
use crateMethod;
use crateimpl_into_cot_error;
/// A ["405 Method Not Allowed"] error that can be returned by Cot applications.
///
/// # Examples
///
/// ```
/// use cot::error::MethodNotAllowed;
///
/// let error = MethodNotAllowed::new(cot::Method::POST);
/// assert_eq!(error.method, &cot::Method::POST);
/// ```
///
/// ["405 Method Not Allowed"]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/405
impl_into_cot_error!;