Add return statement in error handling for page serving