fixed issue764- HTTP status code for expired sessions