mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
WebAPI: Respond with more detailed info
* WebAPI: return error message when endpoint not found * WebAPI: send appropriate status code when logging in * WebAPI: return more info when adding torrents PR #23202. Closes #375. Closes #10688. Closes #10747. Closes #11464.
This commit is contained in:
committed by
GitHub
parent
69b2d7a53e
commit
7ddbf58a3b
@@ -418,6 +418,8 @@ void WebApplication::doProcessRequest()
|
||||
throw ConflictHTTPError(error.message());
|
||||
case APIErrorType::NotFound:
|
||||
throw NotFoundHTTPError(error.message());
|
||||
case APIErrorType::Unauthorized:
|
||||
throw UnauthorizedHTTPError(error.message());
|
||||
default:
|
||||
Q_UNREACHABLE();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user