~moody/rc-gemd

155f3d40db228d89bd4a400f81920d7eeb241af7 — Moody 10 months ago f20fa4e
Make error codes more closely match spec
1 files changed, 2 insertions(+), 2 deletions(-)

M handlers/serve-static
M handlers/serve-static => handlers/serve-static +2 -2
@@ 3,12 3,12 @@ full_path=`{echo $"fs_root^$"location | urlencode -d}
full_path=$"full_path

if(! test -e $full_path){
	error 41 'file does not exist'
	error 51 'file does not exist'
	exit
}

if(! test -r $full_path){
	error 42 'file is not readble'
	error 40 'file is not readable'
	exit
}