keplerproject / wsapi

WSAPI is an API that abstracts the web server from Lua web applications.
http://keplerproject.github.io/wsapi
74 stars 33 forks source link

make status returning more consistent #24

Open rafis opened 11 years ago

rafis commented 11 years ago

Functions _M.send_404() and _M.send_500() are returning status which is meant to be HTTP Status Code. In turn _M.run() returning result of _M.send_404() or _M.send_500() which also has meaning of HTTP Status Code. In common loops like cgi.lua and fastcgi.lua these returnings are not used, but if they would consistency would be violated.