refactored student servlet to use proper http status codes