Fixed bug 764 - HTTP status code for expired sessions