- [ ] Allows attaching an error message to an HTTP status code - [ ] Implements [`std::error::Error`](https://doc.rust-lang.org/std/error/trait.Error.html) - [ ] Implements [`std::fmt::Display`](https://doc.rust-lang.org/std/fmt/trait.Display.html) - Returns the actual error message - [ ] Implements [`warp::reject::Reject`](https://docs.rs/warp/0.2.2/warp/reject/trait.Reject.html) - [ ] Separate method for determining the error message to send back to client - [ ] If `status >= 500`, use a generic message rather than the actual error text - [ ] If `status >= 400 && status < 500` use the actual error message **Note**: May use an external library for this. I am considering implementing this as part of [Nebula](https://gitlab.com/BluestNight/nebula) as its own crate that we can use here.
std::error::Errorstd::fmt::Displaywarp::reject::Rejectstatus >= 500, use a generic message rather than the actual error textstatus >= 400 && status < 500use the actual error messageNote: May use an external library for this. I am considering implementing this as part of Nebula as its own crate that we can use here.