summaryrefslogtreecommitdiff
path: root/responsefile.c
diff options
context:
space:
mode:
authorthlo <t.lohmar@gmx.de>2013-05-10 13:17:30 +0200
committerthlo <t.lohmar@gmx.de>2013-05-10 13:17:30 +0200
commitb08431d6b45acada11104c775d3fb56e907dfa5e (patch)
tree7d638e18ad1e9bd67cd1c66d85c436243e6efef6 /responsefile.c
parent9f8fa7d280397e1d79c0cb57969096b052d194fb (diff)
downloadvdr-plugin-smarttvweb-b08431d6b45acada11104c775d3fb56e907dfa5e.tar.gz
vdr-plugin-smarttvweb-b08431d6b45acada11104c775d3fb56e907dfa5e.tar.bz2
HTTP Error responses are numbered (prep for multi-language).
Diffstat (limited to 'responsefile.c')
-rw-r--r--responsefile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/responsefile.c b/responsefile.c
index 9724957..938d8ef 100644
--- a/responsefile.c
+++ b/responsefile.c
@@ -83,7 +83,7 @@ int cResponseFile::sendFile() {
struct stat64 statbuf;
if (stat64((mRequest->mPath).c_str(), &statbuf) < 0) {
- sendError(404, "Not Found", NULL, "File not found.");
+ sendError(404, "Not Found", NULL, "003 File not found.");
return OKAY;
}
*(mLog->log())<< DEBUGPREFIX
@@ -93,14 +93,14 @@ int cResponseFile::sendFile() {
char f[400];
if (openFile((mRequest->mPath).c_str()) == ERROR) {
- sendError(403, "Forbidden", NULL, "Access denied.");
+ sendError(403, "Forbidden", NULL, "001 Access denied.");
return OKAY;
}
mFile = fopen((mRequest->mPath).c_str(), "r");
if (!mFile) {
- sendError(403, "Forbidden", NULL, "Access denied.");
+ sendError(403, "Forbidden", NULL, "001 Access denied.");
return OKAY;
}