[PR #92] [MERGED] Return 404 in case the path doesn't match instead of 500 #2606

Closed
opened 2026-03-03 02:19:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/92
Author: @mprasil
Created: 7/18/2018
Status: Merged
Merged: 7/18/2018
Merged by: @dani-garcia

Base: masterHead: not_found


📝 Commits (2)

  • 233d23a Return 404 in case the path doesn't match instead of 500
  • 2dc1427 Bump the version

📊 Changes

2 files changed (+14 additions, -9 deletions)

View changed files

📝 Cargo.toml (+1 -1)
📝 src/api/web.rs (+13 -8)

📄 Description

Currently we return 404 if WEB_VAULT_ENABLED is set to false and 500 if Vault is enabled. Upstream API responds with 404 for non-existent endpoints, so we should do the same.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/92 **Author:** [@mprasil](https://github.com/mprasil) **Created:** 7/18/2018 **Status:** ✅ Merged **Merged:** 7/18/2018 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `master` ← **Head:** `not_found` --- ### 📝 Commits (2) - [`233d23a`](https://github.com/dani-garcia/vaultwarden/commit/233d23a527f6eebd29324618e1c53de574256f39) Return 404 in case the path doesn't match instead of 500 - [`2dc1427`](https://github.com/dani-garcia/vaultwarden/commit/2dc1427027cb2c5436ec8ebc4d11d6b0964d803a) Bump the version ### 📊 Changes **2 files changed** (+14 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+1 -1) 📝 `src/api/web.rs` (+13 -8) </details> ### 📄 Description Currently we return 404 if `WEB_VAULT_ENABLED` is set to `false` and 500 if Vault is enabled. Upstream API responds with 404 for non-existent endpoints, so we should do the same. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 02:19:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#2606
No description provided.