aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-07-17 11:54:43 +0200
committerIngela Anderton Andin <[email protected]>2018-07-17 11:59:43 +0200
commiteebfa937b9c08a25b195909581274c7753bc77ef (patch)
tree6a125435d1ecaea67afab7aa61f45e2267ab17da /lib/inets/src
parent857156bcadae45fe112911bd7ca735ac6f3ca9d2 (diff)
downloadotp-eebfa937b9c08a25b195909581274c7753bc77ef.tar.gz
otp-eebfa937b9c08a25b195909581274c7753bc77ef.tar.bz2
otp-eebfa937b9c08a25b195909581274c7753bc77ef.zip
inets: Improve error handling
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_server/httpd_file.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/inets/src/http_server/httpd_file.erl b/lib/inets/src/http_server/httpd_file.erl
index 4d419172d0..fb71834e95 100644
--- a/lib/inets/src/http_server/httpd_file.erl
+++ b/lib/inets/src/http_server/httpd_file.erl
@@ -33,6 +33,9 @@ handle_error(enoent, Op, ModData, Path) ->
handle_error(enotdir, Op, ModData, Path) ->
handle_error(404, Op, ModData, Path,
": A component of the file name is not a directory");
+handle_error(eisdir, Op, ModData, Path) ->
+ handle_error(403, Op, ModData, Path,
+ ":Ilegal operation expected a file not a directory");
handle_error(emfile, Op, _ModData, Path) ->
handle_error(500, Op, none, Path, ": Too many open files");
handle_error({enfile,_}, Op, _ModData, Path) ->