We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9452961 commit 1638302Copy full SHA for 1638302
pragma-entities/src/models/entry_error.rs
@@ -58,6 +58,11 @@ impl IntoResponse for EntryError {
58
StatusCode::UNAUTHORIZED,
59
"Unauthorized publisher".to_string(),
60
),
61
+ Self::InvalidTimestamp => (StatusCode::BAD_REQUEST, "Invalid timestamp".to_string()),
62
+ Self::PublisherError(err) => (
63
+ StatusCode::INTERNAL_SERVER_ERROR,
64
+ format!("Publisher error: {}", err),
65
+ ),
66
_ => (
67
StatusCode::INTERNAL_SERVER_ERROR,
68
String::from("Internal server error"),
0 commit comments